Brad Dunbar
f3be02e1e0
Add test for transition to hashChange.
2012-09-04 17:05:34 -04:00
Jerome Lecomte
1efeae70de
fix #1619 : fix navigation when root is empty
...
broken by commit d015ef1118
2012-09-04 14:31:30 -04:00
Brad Dunbar
d015ef1118
pushState/replaceState takes a relative url.
2012-09-04 09:53:46 -04:00
Brad Dunbar
81669f51a1
test/{test.html -> index.html}
2012-09-02 14:37:52 -04:00
Brad Dunbar
8ef1730b73
Consolidate test boilerplate; use consistent names.
2012-08-31 11:39:34 -04:00
Brad Dunbar
65ed49bbaa
Clean up.
...
* Remove accidental globals.
* Add missing semicolon.
* Clean up test.
2012-08-31 08:51:09 -04:00
Brad Dunbar
dabc5caf31
Upgrade QUnit.
2012-08-31 08:46:35 -04:00
Brad Dunbar
f49272e19e
Fix variable scope error, provide test.
2012-08-29 18:41:08 -04:00
Brad Dunbar
1f3f45252f
Consolidate sync/error events in Backbone.sync.
2012-08-29 16:14:48 -04:00
Brad Dunbar
4335fa885a
Merge pull request #1472 from 'contiamo/master'.
2012-08-29 14:57:11 -04:00
Irene Ros
330f2ba182
adding model parsing for collections on initialization of a collection from raw data
2012-08-16 17:13:02 -04:00
Brad Dunbar
971a5fb383
Add View#dispose.
2012-08-15 16:31:43 -04:00
Brad Dunbar
281014319d
Tweak id/className test.
2012-08-08 11:40:54 -04:00
Genadi Samokovarov
51387ebc36
getValue for View::className and View::id
2012-08-02 01:18:46 +03:00
Brad Dunbar
9a81468be7
Tweak root normalization.
2012-07-27 10:38:52 -04:00
Jamie Rolfs
596b12b56b
Added test case for trailing slashs changes to atRoot in Backbone.history.start()
2012-07-26 12:12:41 -06:00
Jamie Rolfs
3d6b20ca7a
Normalizing root url on Backbone.History.start, consistently matching root url for atRoot in History.start regardless of trailing slash
2012-07-26 11:44:07 -06:00
Jamie Rolfs
86cffe9bc2
Fixed Backbone.History.navigate and Backbone.History.start so any url changes include a slash between the root and route fragment when using pushState
2012-07-26 09:54:54 -06:00
Chris Baynes
3a388b69cf
Always trigger error when validation fails.
2012-07-05 16:39:31 +02:00
Chris Baynes
306e20ecab
Trigger error even when providing a callback.
2012-07-05 15:45:01 +02:00
Brad Dunbar
c18b7763f8
Add a test and tweak whitespace for #1448 .
2012-06-25 08:33:27 -04:00
Brad Dunbar
ff561ca206
Fix #1447 - model.save does not delete options.wait.
2012-06-25 07:39:48 -04:00
Brad Dunbar
af5e8f5c72
Fix #1433 - Do not save invalid models.
2012-06-22 08:02:00 -04:00
Brad Dunbar
10b3b38654
Remove accidental inclusion.
2012-06-21 14:21:59 -04:00
Brad Dunbar
5d3e441b82
Document test source.
2012-06-21 14:20:37 -04:00
Jeremy Ashkenas
9ee453f451
updating tests
2012-06-18 10:21:25 -04:00
Jeremy Ashkenas
2eeaa4a716
merged
2012-06-18 09:50:12 -04:00
Jeremy Ashkenas
76de397c64
Merge pull request #1414 from braddunbar/root-trailing-slash
...
Fix #1387 - getFragment trims trailing slash before removing root.
2012-06-18 06:49:15 -07:00
Brad Dunbar
be5d4fd769
Fix #1366 - Root should not be prepended to history.fragment.
2012-06-16 12:45:08 -04:00
Brad Dunbar
b6b9ec72ff
Fix #1365 - Destroy: new models execute success callback.
2012-06-16 11:33:05 -04:00
Brad Dunbar
4286e0c5ec
Fix #1403 - Trigger "sync" unconditionally.
2012-06-16 10:45:01 -04:00
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
27e9e4743c
Fix #1387 - getFragment trims trailing slash before removing root.
...
* The root should not be stripped when dealing with hashes.
* The trailing slash can be removed since the fragment is
stripped anyway. This could probably be done only once
in `start`, but is saved for a later patch.
* The mock pathname needs to prepend a slash in IE since
anchor.pathname does not contain it.
2012-06-15 00:05:03 -04: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