Avoid false fail in older firefox.

This commit is contained in:
John-David Dalton
2013-10-29 08:56:24 -07:00
parent 5d099491df
commit 3fa2e7e12e

View File

@@ -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();
}
});
}());