Index: test/webkit/fast/regex/alternative-length-miscalculation.js |
diff --git a/test/webkit/statement-list-register-crash.js b/test/webkit/fast/regex/alternative-length-miscalculation.js |
similarity index 87% |
copy from test/webkit/statement-list-register-crash.js |
copy to test/webkit/fast/regex/alternative-length-miscalculation.js |
index b35908e9509a01244be3499eb489ddc39526c6ba..7602d5adec08aeabf08066c0420e6e52b497a3f8 100644 |
--- a/test/webkit/statement-list-register-crash.js |
+++ b/test/webkit/fast/regex/alternative-length-miscalculation.js |
@@ -22,17 +22,12 @@ |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
description( |
-'Tests that code generation of statement lists properly reference counts registers.' |
+"This page tests for length miscalculations in regular expression processing." |
); |
-function f() |
-{ |
- for(; ; i++) { |
- a = 0; |
+var re = /b|[^b]/g; |
+re.lastIndex = 1; |
+shouldBe("re.exec('a')", "null"); |
- if (1) |
- return true; |
- } |
-} |
- |
-shouldBeTrue("f()"); |
+var re2 = /[^a]|ab/; |
+shouldBe("re2.test('')", "false"); |