jscript: Fixed tests on some Windows.

This commit is contained in:
Jacek Caban 2009-12-10 01:16:02 +01:00 committed by Alexandre Julliard
parent 13d6e57e72
commit 7705fe64d6
1 changed files with 5 additions and 2 deletions

View File

@ -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;