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

Side by Side Diff: LayoutTests/fast/js/script-tests/regexp-non-greedy-parentheses.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, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 description(
2 'Test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=39 289">Wrong result in case of non-iterative matching of subpatterns in non-greedy cases in YARR Interpreter</a>'
3 );
4
5 shouldBe('"a".match(/(a)??/)', '["", undefined]');
6 shouldBe('"b".match(/(a)??/)', '["", undefined]');
7 shouldBe('"ab".match(/(a)??b/)', '["ab", "a"]');
8 shouldBe('"aaab".match(/(a+)??b/)', '["aaab", "aaa"]');
9 shouldBe('"abbc".match(/(a)??(b+)??c/)', '["abbc", "a", "bb"]');
10 shouldBe('"ac".match(/(a)??(b)??c/)', '["ac", "a", undefined]');
11 shouldBe('"abc".match(/(a(b)??)??c/)', '["abc", "ab", "b"]');
12 shouldBe('"ac".match(/(a(b)??)??c/)', '["ac", "a", undefined]');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698