From c61af66c5bd0d3beea713af6ef3f458caa1100cc Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 4 May 2012 15:59:30 +0200 Subject: [PATCH] jscript: Skip failing tests on old jscript versions. --- dlls/jscript/tests/api.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index b25f0ae92bb..4366aa1ef3e 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -1016,15 +1016,17 @@ tmp = arr.splice(-bigInt); ok(tmp.toString() == "", "arr.splice(-bigInt) returned " + tmp.toString()); ok(arr.toString() == "1,2,3,4,5", "arr.splice(-bigInt) is " + arr.toString()); -arr = [1,2,3,4,5]; -tmp = arr.splice(2, bigInt); -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()); +if(invokeVersion >= 2) { + arr = [1,2,3,4,5]; + tmp = arr.splice(2, bigInt); + 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]; tmp = arr.splice(2, -bigInt); -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(tmp.toString() == "", "arr.splice(2, -bigInt) returned " + tmp.toString()); +ok(arr.toString() == "1,2,3,4,5", "arr.splice(2, -bigInt) is " + arr.toString()); obj = new Object(); obj.length = 3; -- 2.11.4.GIT