jscript: Skip failing tests on old jscript versions.
This commit is contained in:
parent
cc463d0bcc
commit
c61af66c5b
@ -1016,15 +1016,17 @@ tmp = arr.splice(-bigInt);
|
|||||||
ok(tmp.toString() == "", "arr.splice(-bigInt) returned " + tmp.toString());
|
ok(tmp.toString() == "", "arr.splice(-bigInt) returned " + tmp.toString());
|
||||||
ok(arr.toString() == "1,2,3,4,5", "arr.splice(-bigInt) is " + arr.toString());
|
ok(arr.toString() == "1,2,3,4,5", "arr.splice(-bigInt) is " + arr.toString());
|
||||||
|
|
||||||
arr = [1,2,3,4,5];
|
if(invokeVersion >= 2) {
|
||||||
tmp = arr.splice(2, bigInt);
|
arr = [1,2,3,4,5];
|
||||||
ok(tmp.toString() == "3,4,5", "arr.splice(2, bigInt) returned " + tmp.toString());
|
tmp = arr.splice(2, bigInt);
|
||||||
ok(arr.toString() == "1,2", "arr.splice(2, bigInt) is " + arr.toString());
|
ok(tmp.toString() == "3,4,5", "arr.splice(2, bigInt) returned " + tmp.toString());
|
||||||
|
ok(arr.toString() == "1,2", "arr.splice(2, bigInt) is " + arr.toString());
|
||||||
|
}
|
||||||
|
|
||||||
arr = [1,2,3,4,5];
|
arr = [1,2,3,4,5];
|
||||||
tmp = arr.splice(2, -bigInt);
|
tmp = arr.splice(2, -bigInt);
|
||||||
ok(tmp.toString() == "", "arr.splice(2, bigInt) returned " + tmp.toString());
|
ok(tmp.toString() == "", "arr.splice(2, -bigInt) returned " + tmp.toString());
|
||||||
ok(arr.toString() == "1,2,3,4,5", "arr.splice(2, bigInt) is " + arr.toString());
|
ok(arr.toString() == "1,2,3,4,5", "arr.splice(2, -bigInt) is " + arr.toString());
|
||||||
|
|
||||||
obj = new Object();
|
obj = new Object();
|
||||||
obj.length = 3;
|
obj.length = 3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user