Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: test/mjsunit/regexp-capture-3.js

Issue 11818025: Continues Latin-1 support. All tests pass with ENABLE_LATIN_1 flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ARM fix Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/regexp-capture-3.js
diff --git a/test/mjsunit/regexp-capture-3.js b/test/mjsunit/regexp-capture-3.js
index b676f01c2c28b01b2e357b564101df7718193f7e..4c27ea454b705035c7f084e5fccb26af390472ce 100755
--- a/test/mjsunit/regexp-capture-3.js
+++ b/test/mjsunit/regexp-capture-3.js
@@ -165,23 +165,22 @@ function NoHang(re) {
"This is an ASCII string that could take forever".match(re);
}
-
-NoHang(/(((.*)*)*x)å/); // Continuation after loop is filtered, so is loop.
-NoHang(/(((.*)*)*å)foo/); // Body of loop filtered.
-NoHang(/å(((.*)*)*x)/); // Everything after a filtered character is filtered.
-NoHang(/(((.*)*)*x)å/); // Everything before a filtered character is filtered.
-NoHang(/[æøå](((.*)*)*x)/); // Everything after a filtered class is filtered.
-NoHang(/(((.*)*)*x)[æøå]/); // Everything before a filtered class is filtered.
-NoHang(/[^\x00-\x7f](((.*)*)*x)/); // After negated class.
-NoHang(/(((.*)*)*x)[^\x00-\x7f]/); // Before negated class.
-NoHang(/(?!(((.*)*)*x)å)foo/); // Negative lookahead is filtered.
-NoHang(/(?!(((.*)*)*x))å/); // Continuation branch of negative lookahead.
-NoHang(/(?=(((.*)*)*x)å)foo/); // Positive lookahead is filtered.
-NoHang(/(?=(((.*)*)*x))å/); // Continuation branch of positive lookahead.
-NoHang(/(?=å)(((.*)*)*x)/); // Positive lookahead also prunes continuation.
-NoHang(/(æ|ø|å)(((.*)*)*x)/); // All branches of alternation are filtered.
-NoHang(/(a|b|(((.*)*)*x))å/); // 1 out of 3 branches pruned.
-NoHang(/(a|(((.*)*)*x)ø|(((.*)*)*x)å)/); // 2 out of 3 branches pruned.
+NoHang(/(((.*)*)*x)Ā/); // Continuation after loop is filtered, so is loop.
+NoHang(/(((.*)*)*Ā)foo/); // Body of loop filtered.
+NoHang(/Ā(((.*)*)*x)/); // Everything after a filtered character is filtered.
+NoHang(/(((.*)*)*x)Ā/); // Everything before a filtered character is filtered.
+NoHang(/[ćăĀ](((.*)*)*x)/); // Everything after a filtered class is filtered.
+NoHang(/(((.*)*)*x)[ćăĀ]/); // Everything before a filtered class is filtered.
+NoHang(/[^\x00-\xff](((.*)*)*x)/); // After negated class.
+NoHang(/(((.*)*)*x)[^\x00-\xff]/); // Before negated class.
+NoHang(/(?!(((.*)*)*x)Ā)foo/); // Negative lookahead is filtered.
+NoHang(/(?!(((.*)*)*x))Ā/); // Continuation branch of negative lookahead.
+NoHang(/(?=(((.*)*)*x)Ā)foo/); // Positive lookahead is filtered.
+NoHang(/(?=(((.*)*)*x))Ā/); // Continuation branch of positive lookahead.
+NoHang(/(?=Ā)(((.*)*)*x)/); // Positive lookahead also prunes continuation.
+NoHang(/(æ|ø|Ā)(((.*)*)*x)/); // All branches of alternation are filtered.
+NoHang(/(a|b|(((.*)*)*x))Ā/); // 1 out of 3 branches pruned.
+NoHang(/(a|(((.*)*)*x)ă|(((.*)*)*x)Ā)/); // 2 out of 3 branches pruned.
var s = "Don't prune based on a repetition of length 0";
assertEquals(null, s.match(/å{1,1}prune/));

Powered by Google App Engine
This is Rietveld 408576698