Jacek Caban : jscript: Fixed tests on some Windows.

Alexandre Julliard julliard at winehq.org
Thu Dec 10 10:01:00 CST 2009


Module: wine
Branch: master
Commit: 7705fe64d6fc785f3838d4b0e488e971317cba47
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7705fe64d6fc785f3838d4b0e488e971317cba47

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Dec 10 01:16:02 2009 +0100

jscript: Fixed tests on some Windows.

---

 dlls/jscript/tests/regexp.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/jscript/tests/regexp.js b/dlls/jscript/tests/regexp.js
index ff00285..7f5f907 100644
--- a/dlls/jscript/tests/regexp.js
+++ b/dlls/jscript/tests/regexp.js
@@ -377,8 +377,11 @@ re.lastIndex = 3;
 re.lastIndex = "test";
 ok(re.lastIndex === "test", "re.lastIndex = " + re.lastIndex + " expected 'test'");
 m = re.exec(" a a ");
-ok(re.lastIndex === 2, "re.lastIndex = " + re.lastIndex + " expected 2");
-ok(m.index === 1, "m.index = " + m.index + " expected 1");
+ok(re.lastIndex === 2 || re.lastIndex === 0, "re.lastIndex = " + re.lastIndex + " expected 2 or 0");
+if(re.lastIndex != 0)
+    ok(m.index === 1, "m.index = " + m.index + " expected 1");
+else
+    ok(m === null, "m = " + m + " expected null");
 
 re.lastIndex = 0;
 re.lastIndex = 3.9;




More information about the wine-cvs mailing list