Commit Graph

330 Commits

Author SHA1 Message Date
Brad Dunbar
76eeafcc3a Skip pushState tests with 'file:' protocol. 2012-06-04 12:49:29 -04:00
Brad Dunbar
ba980801ce Revert "Revert "Fix #1366 - Do not prepend root to history.fragment.""
This reverts commit ceb68d7314.
2012-06-04 12:49:17 -04:00
Jeremy Ashkenas
ceb68d7314 Revert "Fix #1366 - Do not prepend root to history.fragment."
This reverts commit 2b0ad77f3b.
2012-06-04 10:52:22 -04:00
Jeremy Ashkenas
97379d6694 Merge pull request #1372 from braddunbar/fragment
Fix #1366 - Do not prepend root to history.fragment.
2012-06-04 07:48:21 -07:00
Brad Dunbar
7828d6d22d Prefer on/off over bind/unbind. 2012-06-03 15:06:44 -04:00
Brad Dunbar
41f64c7f1a Refactor a test for simplicity. 2012-06-03 13:55:40 -04:00
Sam Breed
626e3f16f7 adding correct number of expected assertions to nested change events model test 2012-06-03 11:38:18 -06:00
Sam Breed
f4ebee0406 adding the expected argument to all tests 2012-06-02 18:07:11 -06:00
Brad Dunbar
2b0ad77f3b Fix #1366 - Do not prepend root to history.fragment. 2012-06-02 10:51:11 -04:00
Sam Breed
c924e05bff adding tests for #1355 2012-05-30 11:32:53 -04:00
brad dunbar
b6dc6a224e Merge pull request #1342 from caseywebdev/master
Allow Collection to receive falsy `comparator` to override default
2012-05-24 09:26:40 -07:00
Casey Foster
c016a1c58f Added a few more cases for the test 2012-05-24 09:11:29 -07:00
Casey Foster
4a0acdee50 Simplified falsy comparator test case 2012-05-24 09:02:22 -07:00
Sam Breed
98e01bbc4a adding test for falsy comparators (#1342) 2012-05-23 23:53:13 -06:00
Jeremy Ashkenas
f86674d6a7 Fixes #1343, adding Collection#slice 2012-05-23 17:13:48 -04:00
Brad Dunbar
04bd18e38e Jettison setDomLibrary in favor of Backbone.$. 2012-05-15 17:45:58 -04:00
Brad Dunbar
83a24bb2d5 Fix #1310 - off does not skip consecutive events. 2012-05-14 07:53:01 -04:00
Sam Breed
cacd01d530 Fix #1292 - unexpected results when passing undefined to Model.hasChanged()
* additional check in hashChanged for when `attr` is present but undefined
* adds tests for expected results when passing undefined
2012-05-07 19:45:03 -06:00
Brad Dunbar
c4297e5e2e Fix #1282 - "all" callback list is retrieved for each event. 2012-05-04 13:28:17 -04:00
Jeremy Ashkenas
c7a7584fca Merge pull request #1275 from braddunbar/qunit-1.5.0
Update QUnit.
2012-05-03 07:33:12 -07:00
Brad Dunbar
70005fdd04 Update QUnit.
* Use `deepEqual` in place of `same`.
* Expect 0 tests where appropriate.
* Update view test to use #qunit-fixture.
* Remove `QUnit.config.reorder = false;`.
2012-05-02 20:54:27 -04:00
Brad Dunbar
46d43ae5bf null and undefined are invalid ids. 2012-05-02 17:34:59 -04:00
Brad Dunbar
64205fbd1f Add tests for #1122. 2012-04-24 11:33:15 -04:00
Jeremy Ashkenas
bf9e4f6335 adding a test for the previous commit -- failed save with wait:true 2012-04-23 17:58:10 -04:00
Jeremy Ashkenas
07a00ba45d adding tests for merge:true 2012-04-23 17:15:58 -04:00
Brad Dunbar
35bb2c0fdc Use raises correctly. 2012-04-18 11:03:40 -04:00
Brad Dunbar
5fc8005c83 Fix #1228 - tagName can be provided as a function. 2012-04-17 10:17:37 -04:00
Brad Dunbar
87c9b17aa7 Fix #474 - Backbone.ajax 2012-04-11 08:33:20 -04:00
Jeremy Ashkenas
091b3e5a80 Merge pull request #1181 from braddunbar/isvalid
Fix #1179 - isValid returns true in the absence of validate.
2012-04-04 07:08:33 -07:00
Brad Dunbar
af30bcf3ca off is chainable when there are no events. 2012-04-04 05:52:54 -07:00
Brad Dunbar
137b7fd670 Fix #1179 - isValid returns true in the absence of validate. 2012-04-04 05:28:40 -07:00
Jeremy Ashkenas
a2ed079af8 removing reg exp test. 2012-04-02 17:35:26 -04:00
Jeremy Ashkenas
948d41c290 Merge pull request #1156 from VIISON/master
Router test for urls with encoded characters
2012-04-02 14:22:16 -07:00
Nicklas Ansman Giertz
d852c729df Add a test case for cloning the attribute object
The problem is that the attribute object isn't cloned so when an ID is
set through the constructor attributes[id] will get set on all
subsequent objects as well.
2012-04-02 12:37:25 +02:00
Samuel Vogel
59b39c43a3 Add router test for urls with encoded characters 2012-03-29 17:17:29 +02:00
Raúl Naveiras
db4b617697 add ignores comparator when at option is passed 2012-03-26 16:30:26 +02:00
Ben Orenstein
c7034b9735 Let make take other falsy values for content. 2012-03-21 17:21:16 -04:00
Ben Orenstein
69d2c50640 Allow make to take an argument of 0. 2012-03-21 17:07:32 -04:00
Jeremy Ashkenas
f4a1ebc374 fixes #1030 -- save with wait:true with a synchronous Backbone.sync 2012-03-21 11:18:30 -04:00
Jeremy Ashkenas
e9e1abfe61 model.destroy() returns false if the model.isNew() 2012-03-21 10:40:54 -04:00
Jeremy Ashkenas
7b6dbc8dcd Merge pull request #1021 from ahamid/reset_passes_options
small patch to allow passing options through reset to model initializer
2012-03-19 14:00:58 -07:00
Jeremy Ashkenas
de599c169d Fixes #991. Add Collection#where for simple filters 2012-03-19 16:34:53 -04:00
Jeremy Ashkenas
5f41b88764 Merge pull request #1110 from braddunbar/off
Fix #1105 - Add convenience overloads for `off`.
2012-03-19 09:27:17 -07:00
Jeremy Ashkenas
e2e0a0982b Merge pull request #1114 from braddunbar/save-wait-validate
Fix #1057 - Save with wait validates model.
2012-03-19 08:35:12 -07:00
Brad Dunbar
9ffc84c9fe Fix #1112 - options.model sets collection.model. 2012-03-18 22:28:08 -04:00
Brad Dunbar
6948b59e61 Fix #1057 - Save with wait validates model. 2012-03-18 08:59:23 -04:00
Brad Dunbar
fb27097835 Fix #1105 - Add convenience overloads for off. 2012-03-17 09:02:23 -04:00
Jeremy Ashkenas
64f37ce00e fixes #1067, urlRoot vs collection.url() order 2012-03-12 11:22:44 -04:00
Aidan Feldman
f49969014c clean up tests to use fresh object instances for each run, and don't set
globals within test files
2012-03-12 04:27:22 -04:00
Brad Dunbar
6c392fa69a Fix #986 - Undelegate events before changing el. 2012-02-27 15:01:05 -05:00