From 3fa2e7e12e76a6e7bb163b9b2824a6c460aff7ee Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 29 Oct 2013 08:56:24 -0700 Subject: [PATCH] Avoid false fail in older firefox. --- test/test.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 8f618fd0d..e20b3077b 100644 --- a/test/test.js +++ b/test/test.js @@ -6101,9 +6101,14 @@ array = Array(length), steps = 0; - array[index] = index; - _.sortedIndex(array, index, function() { steps++; }); - equal(steps, 33); + if (array.length == length) { + array[index] = index; + _.sortedIndex(array, index, function() { steps++; }); + equal(steps, 33); + } + else { + skipTest(); + } }); }());