[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:       2008-01-13 19:06:43
Message-ID: 1200251203.310476.2748.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 760945 by orlovich:

Regression test for #149191, #151477
CCBUG:149191
CCBUG:151477


 M  +7 -0      RegExp.js  


--- trunk/tests/khtmltests/regression/tests/js/RegExp.js #760944:760945
@@ -208,4 +208,11 @@
 shouldBe("'au62c'.search(/(\\u62)/);", "1");
 shouldBe("'au62bc'.search(/(\\u62|q)/);", "1");
 
+var s = "*";
+while (s.length < 100000)
+    s = s + s;
+var re = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;
+
+shouldThrow('("<scr" + s + "/scr>").match(re);'); // ... and not crash
+
 debug("Done.");
[prev in list] [next in list] [prev in thread] [next in thread] 

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