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

Side by Side Diff: LayoutTests/fast/js/script-tests/regexp-bol.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 beginning of line (BOL or ^) matching</a>'
3 );
4
5 var s = "abc123def456xyzabc789abc999";
6 shouldBeNull('s.match(/^notHere/)');
7 shouldBe('s.match(/^abc/)', '["abc"]');
8 shouldBe('s.match(/(^|X)abc/)', '["abc",""]');
9 shouldBe('s.match(/^longer|123/)', '["123"]');
10 shouldBe('s.match(/(^abc|c)123/)', '["abc123","abc"]');
11 shouldBe('s.match(/(c|^abc)123/)', '["abc123","abc"]');
12 shouldBe('s.match(/(^ab|abc)123/)', '["abc123","abc"]');
13 shouldBe('s.match(/(bc|^abc)([0-9]*)a/)', '["bc789a","bc","789"]');
14 shouldBeNull('/(?:(Y)X)|(X)/.exec("abc")');
15 shouldBeNull('/(?:(?:^|Y)X)|(X)/.exec("abc")');
16 shouldBeNull('/(?:(?:^|Y)X)|(X)/.exec("abcd")');
17 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("Xabcd")', '["X",undefined]');
18 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("aXbcd")', '["X","X"]');
19 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("abXcd")', '["X","X"]');
20 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("abcXd")', '["X","X"]');
21 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("abcdX")', '["X","X"]');
22 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("YXabcd")', '["YX",undefined]');
23 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("aYXbcd")', '["YX",undefined]');
24 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("abYXcd")', '["YX",undefined]');
25 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("abcYXd")', '["YX",undefined]');
26 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("abcdYX")', '["YX",undefined]');
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/script-tests/read-modify-eval.js ('k') | LayoutTests/fast/js/script-tests/regexp-bol-with-multiline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698