mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Update async _.throttle test.
This commit is contained in:
@@ -7020,7 +7020,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should clear timeout when `func` is called', 1, function() {
|
asyncTest('should clear timeout when `func` is called', 1, function() {
|
||||||
if (!isModularize) {
|
if (!isModularize) {
|
||||||
var callCount = 0,
|
var callCount = 0,
|
||||||
dateCount = 0;
|
dateCount = 0;
|
||||||
@@ -7043,7 +7043,10 @@
|
|||||||
throttled();
|
throttled();
|
||||||
throttled();
|
throttled();
|
||||||
|
|
||||||
equal(callCount, 2);
|
setTimeout(function() {
|
||||||
|
equal(callCount, 2);
|
||||||
|
QUnit.start();
|
||||||
|
}, 64);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest();
|
skipTest();
|
||||||
@@ -8352,7 +8355,7 @@
|
|||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
QUnit.config.asyncRetries = 5;
|
QUnit.config.asyncRetries = 10;
|
||||||
|
|
||||||
if (!document) {
|
if (!document) {
|
||||||
QUnit.config.noglobals = true;
|
QUnit.config.noglobals = true;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<script src="./asset/qunit-extras.js"></script>
|
<script src="./asset/qunit-extras.js"></script>
|
||||||
<script src="./asset/test-ui.js"></script>
|
<script src="./asset/test-ui.js"></script>
|
||||||
<script>
|
<script>
|
||||||
QUnit.config.asyncRetries = 5;
|
QUnit.config.asyncRetries = 10;
|
||||||
QUnit.config.hidepassed = true;
|
QUnit.config.hidepassed = true;
|
||||||
|
|
||||||
// excuse tests we intentionally fail or those with problems
|
// excuse tests we intentionally fail or those with problems
|
||||||
|
|||||||
Reference in New Issue
Block a user