Add count check now that we clear timeoutId properly.

This commit is contained in:
John-David Dalton
2013-11-05 21:44:59 -08:00
parent 1bb7c31ee4
commit 94ed21d1cf

View File

@@ -1531,7 +1531,7 @@
} }
}); });
asyncTest('should call `trailing` with the correct `arguments` and `this` binding', 1, function() { asyncTest('should call `trailing` with the correct `arguments` and `this` binding', 2, function() {
if (!(isRhino && isModularize)) { if (!(isRhino && isModularize)) {
var args, var args,
count = 0, count = 0,
@@ -1549,12 +1549,13 @@
} }
} }
setTimeout(function() { setTimeout(function() {
equal(count, 2);
deepEqual(args, [object, 'a']); deepEqual(args, [object, 'a']);
QUnit.start(); QUnit.start();
}, 256); }, 256);
} }
else { else {
skipTest(1); skipTest(2);
QUnit.start(); QUnit.start();
} }
}); });