Skip to content

Commit

Permalink
Update async _.throttle test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Nov 23, 2013
1 parent 8dc90a6 commit 9b43905
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions test/test.js
Expand Up @@ -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;
Expand All @@ -7043,7 +7043,10 @@
throttled();
throttled();

equal(callCount, 2);
setTimeout(function() {
equal(callCount, 2);
QUnit.start();
}, 64);
}
else {
skipTest();
Expand Down Expand Up @@ -8352,7 +8355,7 @@

/*--------------------------------------------------------------------------*/

QUnit.config.asyncRetries = 5;
QUnit.config.asyncRetries = 10;

if (!document) {
QUnit.config.noglobals = true;
Expand Down
2 changes: 1 addition & 1 deletion test/underscore.html
Expand Up @@ -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
Expand Down

0 comments on commit 9b43905

Please sign in to comment.