Brad Dunbar
3d431346c7
Use empty route name for anonymous routes.
2013-03-20 01:42:29 -04:00
Jeremy Ashkenas
2b8f116dcc
Adding a test for slashes with splats, github-style
2013-03-20 11:11:18 +08:00
Jeremy Ashkenas
d6e283ec3e
Fixes #2321 , fixes #2014 -- decode route arguments.
2013-03-20 10:50:42 +08:00
Jeremy Ashkenas
e6e7fe878b
Fixes #2216 , fixes #2239 , allow routes to be defined anonymously.
2013-03-19 18:59:31 +08:00
Jeremy Ashkenas
0f1b88bae9
#2321 -- unicode test
2013-03-19 18:10:37 +08:00
David Lee
02d6c350b4
Fix test: making vars local
2013-03-15 12:17:32 -04:00
David Lee
29ad43e610
Write a test for making Router.routes accept a function
...
[#2255 ]
2013-03-15 11:57:16 -04:00
Brad Dunbar
016825e725
Add a test for the "route" event.
2013-01-07 11:27:32 -05:00
Brad Dunbar
1c4a1e3bc5
Fix #1980 - Named and optional params.
2012-12-21 09:39:54 -05:00
Jeremy Ashkenas
3ccde89a97
router test tweak to placate oldIEs
2012-12-13 18:37:35 -05:00
Jeremy Ashkenas
328e721896
router test tweak to placate oldIEs
2012-12-13 18:36:43 -05:00
Jeremy Ashkenas
aaaefd21d8
tweaking test case for IE7
2012-12-13 18:31:31 -05:00
Genadi Samokovarov
631fd34dd7
Replace undefined with void 0 at router's test
...
Spotted these after commenting on the Change Log issue.
2012-12-10 11:06:09 +02:00
Jeremy Ashkenas
6dadc92765
Merge branch 'encoded-fragments' of https://github.com/braddunbar/backbone
2012-12-07 15:24:55 -05:00
Brad Dunbar
39ff3870a7
Fix gh-1820 - Update comment, use global flag.
2012-11-14 17:00:17 -05:00
Brad Dunbar
d196c25fe6
Strip trailing space from fragments.
2012-11-02 09:03:16 -04:00
Brian Erickson
d389418eb1
Updated issue number in test to match pull request issue.
2012-11-01 22:56:15 -06:00
Brian Erickson
8decce8d7d
Issue #1793 : Backbone.history.navigate should use this.getFragment instead of fragment to avoid routes getting triggered twice
2012-11-01 22:41:47 -06:00
Brad Dunbar
db26c74d1a
Merge pull request #1746 from michalkot/master.
...
Allow empty routes.
2012-10-17 07:53:15 -04:00
Ian Storm Taylor
3169cfe6ed
swapped optional route syntax to parentheses, and adding docs
2012-10-02 19:10:59 -07:00
Ian Storm Taylor
ac8a807f49
added optional groups to route syntax, with tests
2012-10-02 19:10:59 -07:00
Brad Dunbar
3f530c2ab5
Fix #1695 - Ignore location.search during pushState transition.
2012-10-02 06:36:23 -04:00
Brad Dunbar
a424341355
Fix #1653 - Ensure that History can be used outside of the browser.
...
* Dispense with options argument.
* Use `window` to retrieve location/history by default.
* Don't throw outside of the browser, allowing location and
history to be replaced appropriately.
2012-09-17 14:38:48 -04:00
Brad Dunbar
fa19b17e18
Fragments should be handled encoded.
2012-09-14 08:19:38 -04:00
Brad Dunbar
33cdab412e
Drop doubled test prefixes.
2012-09-05 08:52:27 -04:00
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
65ed49bbaa
Clean up.
...
* Remove accidental globals.
* Add missing semicolon.
* Clean up test.
2012-08-31 08:51:09 -04: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
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
Brad Dunbar
be5d4fd769
Fix #1366 - Root should not be prepended to history.fragment.
2012-06-16 12:45:08 -04: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
e4caafc68b
Add router tests for #1185 , #1206 .
2012-06-12 22:28:29 -04:00
Brad Dunbar
2e2e9f7e96
Use mock location to test Backbone.history.
2012-06-12 11:57:50 -04: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
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
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
Jeremy Ashkenas
a2ed079af8
removing reg exp test.
2012-04-02 17:35:26 -04:00