Commit graph

67 commits

Author SHA1 Message Date
Pierre-Yves Gérardy
a867754d6a Don't overwrite the options object when redirecting from onmatch with m.route.set, fix #1857 2017-07-05 23:58:01 +02:00
Gyandeep Singh
daf5a64697 Chore: Fix lint issues and add indent with tabs 2017-03-11 15:54:41 -06:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Pierre-Yves Gerardy
a8e5189f0b Tests: factory => closure components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
f4fb5ac4be Tests for routes that resolve to class and factory components 2017-02-15 21:58:41 +01:00
Leo
9d5f686bbd #1579 prevent infinite loop in non-existent default route 2017-02-03 22:21:14 -05:00
Pat Cavit
d119accb21 fix: m.route.param, not m.route.params 😓 2017-01-11 15:14:29 -08:00
Pat Cavit
2cdd8a96d1 tests: undefined until a route has been matched 2017-01-11 14:25:19 -08:00
Pat Cavit
834dd02610 feat: bring back m.route.params()
Because it's annoying only having route params available to the
top-level components within a route.
2017-01-11 14:23:42 -08:00
Leo Horie
9ad16858a5 #1520 ospec: report duplicate test names 2017-01-08 13:05:27 -05:00
Bryce Gibson
eadd9a0768 Ensure the test checks the right thing. 2016-12-24 09:36:24 +11:00
Leo
d42d728681 fix test 2016-12-23 08:52:09 -05:00
Bryce Gibson
f4084671bc Typo. 2016-12-22 21:16:32 +11:00
Bryce Gibson
088c41a47f Test precondition. 2016-12-22 21:16:32 +11:00
Pierre-Yves Gerardy
703aab7905 [router] Fix hopefully the last race condition 2016-12-09 11:13:42 +01:00
Pierre-Yves Gerardy
605fa44711 [api/router] Test for two deferred onmatch racing 2016-12-08 15:18:37 +01:00
Pierre-Yves Gerardy
3a671fc5ca [router] add tests for onmatch corner cases 2016-12-07 17:07:37 +01:00
Leo Horie
f1f52445ec more router fixes 2016-12-07 07:57:58 -05:00
Leo Horie
992aa30ccc fix m.route.link and m.route.set history replacement 2016-12-06 23:29:15 -05:00
Leo Horie
37cb9a0622 test some more routeresolver cases 2016-12-06 21:59:45 -05:00
Leo Horie
c2acdf6f4a fix and test some edge cases in router 2016-12-06 19:59:39 -05:00
Leo Horie
d8ad94adb2 fix invalidation test 2016-12-06 16:53:16 -05:00
Leo Horie
b6c79f5911 tighten up async testing 2016-12-06 12:43:23 -05:00
Leo Horie
3134202d24 fix tests 2016-12-06 00:09:09 -05:00
Leo Horie
809d8921c9 bypass route resolution algorithm on non-routed redraws 2016-12-05 11:23:25 -05:00
Leo Horie
bb4321e8db Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-12-04 23:36:52 -05:00
Leo Horie
a2b45ff131 add integration test 2016-12-04 23:36:38 -05:00
Pierre-Yves Gerardy
58275417d4 Add test for the context of onmatch and render 2016-12-04 23:49:33 +01:00
Pierre-Yves Gerardy
b6c8e2c63e Add an assertion for RouteResolver.render calls on route.set(route.get()) 2016-12-04 23:38:01 +01:00
Leo Horie
2ffd2fb7e4 throttle m.route redraws 2016-12-04 01:53:39 -05:00
Leo Horie
7368cf6f26 spacing 2016-12-03 09:09:37 -05:00
Leo Horie
713c25c9c0 fix #1404 2016-12-01 01:45:07 -05:00
1111hui
49d678e9a2 double test timeout for test pass in old machine 2016-10-10 16:41:57 +08:00
Leo Horie
cffe77b2c2 tweak timeout in some api/router tests 2016-10-04 16:43:31 -04:00
Pierre-Yves Gerardy
118da88889 Add test for keys on routed components 2016-09-17 22:43:38 +02:00
Pierre-Yves Gerardy
b8673f2ff5 Validate the DOM node passed to render 2016-09-09 15:20:26 +02:00
Pierre-Yves Gerardy
879b9d6883 Adapt tests for debouncedAsync. 2016-09-02 23:05:34 +02:00
Pierre-Yves Gerardy
a34685d7a4 m.route.get() returns the last fully resolved route (fix #1276), change RouteResolver.onmatch() signature according to #1277 2016-09-02 22:03:27 +02:00
Pierre-Yves Gerardy
419897f72c Add test for #1276 2016-09-02 22:00:59 +02:00
Pierre-Yves Gerardy
09578197a1 Mount-based api/router.js
Fix #1180
Fix #1268
Fix #1275
Fix #1286
2016-09-02 21:59:05 +02:00
Pierre-Yves Gerardy
2e3a610a78 Tests for the bugs fixed by the mount-based router 2016-09-02 21:56:58 +02:00
Pierre-Yves Gerardy
f9b358331e White space cleanup 2016-09-01 20:17:05 +02:00
Leo Horie
00d555b9f4 prevent race condition between route.set and async resolve
remove path and route from attrs
2016-08-26 00:56:01 -04:00
Leo Horie
ec07d76fcd m.fragment docs
public api tests
2016-08-24 00:26:15 -04:00
Leo Horie
53a83a58f2 rename RouteResolver::view back to render to restore diff semantics
prevent double resolving
2016-08-23 22:33:18 -04:00
Leo Horie
80c25e3809 rename routeresolver methods to {onmatch,view}
expose some piecemeal modules
rename internal xhr to request
mirror internal stream api to match public api
2016-08-17 00:10:47 -04:00
Leo Horie
68331065b7 more router tests 2016-08-12 23:56:17 -04:00
Leo Horie
8ec3a3f2c5 test router using file protocol as start point 2016-08-02 23:21:13 -04:00
Leo Horie
084d99f125 fix back button on default route trigger 2016-07-15 01:22:34 -04:00
Leo Horie
a6c56ff6b9 resolve hook in router 2016-07-11 09:50:00 -04:00