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

Version Path
sproutcore-1.0.1046 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1043 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1042 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1037 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1035 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1031 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1030 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1029 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1027 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1028 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1026 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1025 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1024 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1009 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1008 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js
sproutcore-1.0.1003 frameworks/sproutcore/frameworks/foundation/tests/system/routes.js