From kde-commits Mon Mar 22 16:22:00 2010 From: Maks Orlovich Date: Mon, 22 Mar 2010 16:22:00 +0000 To: kde-commits Subject: tests/khtmltests/regression/tests/js Message-Id: <20100322162200.77316AC86C () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=126927497820575 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('("").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.");