mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Push back timer in _.delay tests.
This commit is contained in:
@@ -1654,7 +1654,7 @@
|
|||||||
asyncTest('should delay `func` execution', 2, function() {
|
asyncTest('should delay `func` execution', 2, function() {
|
||||||
if (!(isRhino && isModularize)) {
|
if (!(isRhino && isModularize)) {
|
||||||
var pass = false;
|
var pass = false;
|
||||||
_.delay(function(){ pass = true; }, 64);
|
_.delay(function(){ pass = true; }, 128);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
ok(!pass);
|
ok(!pass);
|
||||||
@@ -1682,7 +1682,7 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
deepEqual(args, [1, 2, 3]);
|
deepEqual(args, [1, 2, 3]);
|
||||||
QUnit.start();
|
QUnit.start();
|
||||||
}, 256);
|
}, 512);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest();
|
skipTest();
|
||||||
|
|||||||
Reference in New Issue
Block a user