From 2bc19120d979c6421a243403c69f0c864ef7e6d5 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 1 Nov 2013 23:28:20 -0700 Subject: [PATCH] Avoid false fail for a `_.throttle` test in some VMs. --- test/test.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 8742f8977..3eed2d6d0 100644 --- a/test/test.js +++ b/test/test.js @@ -6790,7 +6790,7 @@ } }); - asyncTest('subsequent calls should return the result of the first call', 2, function() { + asyncTest('subsequent calls should return the result of the first call', 5, function() { if (!(isRhino && isModularize)) { var throttled = _.throttle(function(value) { return value; }, 32), result = [throttled('x'), throttled('y')]; @@ -6799,12 +6799,18 @@ setTimeout(function() { var result = [throttled('a'), throttled('b')]; - deepEqual(result, ['a', 'a']); + + notEqual(result[0], 'x'); + notStrictEqual(result[0], undefined); + + notEqual(result[1], 'b'); + notStrictEqual(result[1], undefined); + QUnit.start(); }, 128); } else { - skipTest(2); + skipTest(5); QUnit.start(); } });