mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Add count check now that we clear timeoutId properly.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user