Sha256: 0e4ed718bb1cf02b11a5d4f2686a1ebfb29b138c9f4802adb53d580a75fac9d3
Contents?: true
Size: 746 Bytes
Versions: 16
Compression:
Stored size: 746 Bytes
Contents
// ======================================================================== // SC.routes Base Tests // ======================================================================== /*globals module test ok isObj equals expects */ var currentRoute; var handleRoute = function(url) { currentRoute = url.url; }; module("SC.routes", { setup: function() { currentRoute = null; SC.routes.add(':url', handleRoute); }, teardown: function() { SC.routes.set('location', ''); } }); test("Routes with UTF-8 characters", function() { SC.routes.set('location', 'éàçù߀'); equals(currentRoute, 'éàçù߀'); stop(); setTimeout(function() { start(); equals(currentRoute, 'éàçù߀'); }, 1200); });
Version data entries
16 entries across 16 versions & 1 rubygems