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

Unified Diff: LayoutTests/fast/js/script-tests/regexp-non-capturing-groups.js

Issue 20867002: Remove old tests that have been migrated to the v8 repo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unused script-tests as well 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: LayoutTests/fast/js/script-tests/regexp-non-capturing-groups.js
diff --git a/LayoutTests/fast/js/script-tests/regexp-non-capturing-groups.js b/LayoutTests/fast/js/script-tests/regexp-non-capturing-groups.js
deleted file mode 100644
index 8670b17b10bee2dca1866b169eff415d6f180cbf..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/script-tests/regexp-non-capturing-groups.js
+++ /dev/null
@@ -1,19 +0,0 @@
-description(
-'Test for behavior of non-capturing groups, as described in <a href="http://blog.stevenlevithan.com/archives/npcg-javascript">' +
-'a blog post by Steven Levithan</a> and <a href="http://bugs.webkit.org/show_bug.cgi?id=14931">bug 14931</a>.'
-);
-
-shouldBe('/(x)?\\1y/.test("y")', 'true');
-shouldBe('/(x)?\\1y/.exec("y")', '["y", undefined]');
-shouldBe('/(x)?y/.exec("y")', '["y", undefined]');
-shouldBe('"y".match(/(x)?\\1y/)', '["y", undefined]');
-shouldBe('"y".match(/(x)?y/)', '["y", undefined]');
-shouldBe('"y".match(/(x)?\\1y/g)', '["y"]');
-shouldBe('"y".split(/(x)?\\1y/)', '["", undefined, ""]');
-shouldBe('"y".split(/(x)?y/)', '["", undefined, ""]');
-shouldBe('"y".search(/(x)?\\1y/)', '0');
-shouldBe('"y".replace(/(x)?\\1y/, "z")', '"z"');
-shouldBe('"y".replace(/(x)?y/, "$1")', '""');
-shouldBe('"y".replace(/(x)?\\1y/, function($0, $1){ return String($1); })', '"undefined"');
-shouldBe('"y".replace(/(x)?y/, function($0, $1){ return String($1); })', '"undefined"');
-shouldBe('"y".replace(/(x)?y/, function($0, $1){ return $1; })', '"undefined"');

Powered by Google App Engine
This is Rietveld 408576698