Commit Graph

343 Commits

Author SHA1 Message Date
Brad Dunbar
4ecc161ecf Tweak tests a bit. 2012-06-15 11:30:49 -04:00
Casey Foster
f24ca5a0ed #1412 - Trigger "sync" event for fetch also 2012-06-15 07:33:38 -07:00
Brad Dunbar
30e630a8d2 QUnit 1.8.0 2012-06-14 14:56:28 -04:00
Brad Dunbar
39551232d7 Quote attributes correctly for older browsers. 2012-06-14 14:47:57 -04:00
Brad Dunbar
e4caafc68b Add router tests for #1185, #1206. 2012-06-12 22:28:29 -04:00
Jeremy Ashkenas
fd178e829f Merge pull request #1400 from braddunbar/mock-location
Use mock location to test Backbone.history.
2012-06-12 10:27:52 -07:00
Brad Dunbar
2e2e9f7e96 Use mock location to test Backbone.history. 2012-06-12 11:57:50 -04:00
Brad Dunbar
f133f0d5dc Ensure tests run in IE7. 2012-06-12 11:31:34 -04:00
Brad Dunbar
ee062f6de6 Fix assertion count. 2012-06-06 14:46:32 -04:00
brad dunbar
d7e77b1af8 Merge pull request #1327 from TheBits/silent-merge
Merge model with silent flag
2012-06-06 04:36:10 -07:00
Brad Dunbar
85bd0b5132 Revert "Revert "Revert "Fix #1366 - Do not prepend root to history.fragment."""
This reverts commit ba980801ce.
2012-06-04 13:00:43 -04:00
Brad Dunbar
2939a2a412 Revert "Skip pushState tests with 'file:' protocol."
This reverts commit 76eeafcc3a.
2012-06-04 13:00:39 -04:00
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
Sergey Mezentsev
3630b04ed0 Improve test "merge in duplicate models with {merge: true}" 2012-05-17 19:21:04 +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