Reduce wait times to speed up unit tests.

This commit is contained in:
John-David Dalton
2013-11-07 20:51:48 -08:00
parent fc3ff34c2d
commit b15ed00feb

View File

@@ -1618,7 +1618,7 @@
setTimeout(function() { setTimeout(function() {
ok(pass); ok(pass);
QUnit.start(); QUnit.start();
}, 256); }, 128);
} }
else { else {
skipTest(); skipTest();
@@ -1637,7 +1637,7 @@
setTimeout(function() { setTimeout(function() {
deepEqual(args, [1, 2, 3]); deepEqual(args, [1, 2, 3]);
QUnit.start(); QUnit.start();
}, 256); }, 128);
} }
else { else {
skipTest(); skipTest();
@@ -1654,7 +1654,7 @@
asyncTest('should delay `func` execution', 2, function() { asyncTest('should delay `func` execution', 2, function() {
if (!(isRhino && isModularize)) { if (!(isRhino && isModularize)) {
var pass = false; var pass = false;
_.delay(function(){ pass = true; }, 128); _.delay(function(){ pass = true; }, 100);
setTimeout(function() { setTimeout(function() {
ok(!pass); ok(!pass);
@@ -1663,7 +1663,7 @@
setTimeout(function() { setTimeout(function() {
ok(pass); ok(pass);
QUnit.start(); QUnit.start();
}, 512); }, 256);
} }
else { else {
skipTest(2); skipTest(2);
@@ -1682,7 +1682,7 @@
setTimeout(function() { setTimeout(function() {
deepEqual(args, [1, 2, 3]); deepEqual(args, [1, 2, 3]);
QUnit.start(); QUnit.start();
}, 512); }, 128);
} }
else { else {
skipTest(); skipTest();