From 94ed21d1cf53218b2f2fb15cef874eb33a8311f1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 5 Nov 2013 21:44:59 -0800 Subject: [PATCH] Add `count` check now that we clear `timeoutId` properly. --- test/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 4712ce454..200659d59 100644 --- a/test/test.js +++ b/test/test.js @@ -1531,7 +1531,7 @@ } }); - asyncTest('should call `trailing` with the correct `arguments` and `this` binding', 1, function() { + asyncTest('should call `trailing` with the correct `arguments` and `this` binding', 2, function() { if (!(isRhino && isModularize)) { var args, count = 0, @@ -1549,12 +1549,13 @@ } } setTimeout(function() { + equal(count, 2); deepEqual(args, [object, 'a']); QUnit.start(); }, 256); } else { - skipTest(1); + skipTest(2); QUnit.start(); } });