Permalink
Browse files

Fix some broken tests

  • Loading branch information...
1 parent 10c071f commit bd5cc9d967496a38afa7ac843d70268b9df18eaf @nikhilk committed Sep 7, 2012
Showing with 2 additions and 11 deletions.
  1. +1 −1 src/Core/CoreScript/BCL/Debug.js
  2. +1 −1 src/Core/CoreScript/BCL/Task.js
  3. +0 −9 tests/CoreLib/TestEnum.htm
@@ -10,7 +10,7 @@ if (!global.console) {
}
}
-global.console.fail = function(message) {
+console.fail = function(message) {
console.assert(false, message);
if (global.navigator && (global.navigator.userAgent.indexOf('MSIE') > 0)) {
eval('debugger;');
@@ -64,7 +64,7 @@ ss.Task.prototype = {
ss.Task._join = function(tasks, any) {
tasks = Array.toArray(tasks);
#if DEBUG
- ss.Debug.assert(tasks.length > 1);
+ console.assert(tasks.length > 1);
#endif // DEBUG
var count = tasks.length;
@@ -34,15 +34,6 @@ <h2 id="qunit-userAgent"></h2>
};
Test.Modes.registerEnum('Test.Modes', true);
-module('Enum');
-test('isEnum', function() {
- QUnit.equal(Type.isEnum(Test.Color), true, 'Color is an enum');
- QUnit.equal(Type.isFlags(Test.Color), false, 'Color is not a flags enum');
- QUnit.equal(Type.isEnum(Test.Modes), true, 'Modes is an enum');
- QUnit.equal(Type.isFlags(Test.Modes), true, 'Modes is a flags enum');
- QUnit.equal(Type.isEnum(ss.IEnumerable), false, 'IEnumerable is not an enum');
-});
-
test('enum values', function() {
QUnit.equal(Test.Color.Green, 1, 'Green should be 1');
});

0 comments on commit bd5cc9d

Please sign in to comment.