Commit 7705fe64 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Fixed tests on some Windows.

parent 13d6e57e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment