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) { 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;

View File

@@ -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