[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    tests/khtmltests/regression/tests/js
From:       Maks Orlovich <maksim () kde ! org>
Date:       2010-03-22 16:22:00
Message-ID: 20100322162200.77316AC86C () svn ! kde ! org
[Download RAW message or body]

SVN commit 1106365 by orlovich:

Add the contributed test from pcc for the RegExp.prototype.test lastIndex bug 



 M  +5 -0      RegExp.js  


--- trunk/tests/khtmltests/regression/tests/js/RegExp.js #1106364:1106365
@@ -238,4 +238,9 @@
 
 shouldThrow('("<scr" + s + "/scr>").match(re);'); // ... and not crash
 
+// proper .lastIndex updating for .test
+var re = /x/g;
+var s = "x";
+shouldBeFalse("re.test(s) && re.test(s)");
+
 debug("Done.");
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic