mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Avoid false fail in older firefox.
This commit is contained in:
11
test/test.js
11
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();
|
||||
}
|
||||
});
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user