Update async _.throttle test.

This commit is contained in:
John-David Dalton
2013-11-22 22:08:51 -08:00
parent c1a07e0943
commit e32e280cf1
2 changed files with 7 additions and 4 deletions

View File

@@ -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) {
var callCount = 0,
dateCount = 0;
@@ -7043,7 +7043,10 @@
throttled();
throttled();
equal(callCount, 2);
setTimeout(function() {
equal(callCount, 2);
QUnit.start();
}, 64);
}
else {
skipTest();
@@ -8352,7 +8355,7 @@
/*--------------------------------------------------------------------------*/
QUnit.config.asyncRetries = 5;
QUnit.config.asyncRetries = 10;
if (!document) {
QUnit.config.noglobals = true;

View File

@@ -25,7 +25,7 @@
<script src="./asset/qunit-extras.js"></script>
<script src="./asset/test-ui.js"></script>
<script>
QUnit.config.asyncRetries = 5;
QUnit.config.asyncRetries = 10;
QUnit.config.hidepassed = true;
// excuse tests we intentionally fail or those with problems