UNPKG

can-route

Version:

Observable front-end application routing for CanJS.

59 lines (53 loc) 1.51 kB
<!DOCTYPE html> <html lang="en"> <head> <title>can.route test page</title> </head> <body> <p>This is a dummy page to use<br/> for testing route goodness</p> <!-- For the main CanJS test suite --> <script type="text/javascript" src="../../../node_modules/steal/steal-with-promises.js" main="@empty"></script> <!-- For this repo’s test suite --> <script type="text/javascript" src="../node_modules/steal/steal-with-promises.js" main="@empty"></script> <script> steal.config({ paths: { "can-route*src/routedata": (System.src === "../../../node_modules/steal/steal-with-promises.js" ? "node_modules/can-route/" : "") + "src/routedata-definemap.js" } }); </script> <script> steal.done().then(function() { Promise.all([ System.import("can-route"), System.import("can-observation"), System.import("can-stache-key"), System.import("can-map") ]).then(function(modules){ var route = modules[0]; window.ObserveInfo = modules[1]; window.observeReader = modules[2]; window.CanMap = modules[3]; route.data = new CanMap; /* // delay start to find tests that may fail in CI var origStart = route.start; route.start = function() { var r = this; var args = arguments; setTimeout(function() { origStart.apply(r, args); }, 50); }; */ setTimeout(function () { window.parent.routeTestReady && window.parent.routeTestReady(route, window.location, window) }, 30); }); }); </script> </body> </html>