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

Unified Diff: test/webkit/fast/regex/non-capturing-backtracking.js

Issue 20280003: Migrate more tests from blink repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/webkit/fast/regex/non-capturing-backtracking.js
diff --git a/test/webkit/declaration-in-block.js b/test/webkit/fast/regex/non-capturing-backtracking.js
similarity index 90%
copy from test/webkit/declaration-in-block.js
copy to test/webkit/fast/regex/non-capturing-backtracking.js
index 39c4fc06ce7958ba0d4c2f77e9faede8d67370d3..e086dc7d6d19b57faaf9d47b49a119523a727503 100644
--- a/test/webkit/declaration-in-block.js
+++ b/test/webkit/fast/regex/non-capturing-backtracking.js
@@ -22,8 +22,8 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
description(
-"This test checks that declarations in an if block can be seen outside it."
+"This page tests for proper backtracking with greedy quantifiers and non-capturing parentheses."
);
-if (0) { var b; }
-var a = b;
+var re = /(?:a*)a/;
+shouldBe("re.exec('a')", "['a']");
« no previous file with comments | « test/webkit/fast/regex/malformed-escapes-expected.txt ('k') | test/webkit/fast/regex/non-capturing-backtracking-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698