Bug 637572 - Fix for Script-sourceStart-03.js CLOSED TREE

This commit is contained in:
Eddy Bruel 2013-05-28 15:08:15 -07:00
parent 69cd1d9077
commit 80b2243d36

View File

@ -21,11 +21,15 @@ function test(string, ranges) {
};
g.eval(string);
assertEq(index, ranges.length);
/*
* In some configurations certain child scripts are listed twice, so we
* cannot rely on index always having the exact same value
*/
assertEq(0 < index && index <= ranges.length, true);
};
test("() => {}", [[0, 8]]);
test("(x, y) => { x * y }", [[0, 19]]);
test("x => x * x", [[0, 10]]);
test("x => x => x * x", [[0, 15], [5, 10]]);
test("x => x => x => x * x", [[0, 20], [5, 15], [10, 10]]);
test("x => x => x * x", [[0, 15], [5, 10], [5, 10]]);