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

Side by Side Diff: LayoutTests/fast/js/script-tests/regexp-lastindex.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 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=56 02">REGRESSION: RegExp("[^\\s$]+", "g") returns extra matches</a>'
3 );
4
5 var re = new RegExp("[^\\s$]+", "g");
6 var accumulate = "";
7 var match;
8 shouldBe('while (match = re.exec(" abcdefg")) accumulate += match + "; "; accum ulate', '"abcdefg; "');
9
10 var re = new RegExp(/\d/g);
11 accumulate = "";
12 shouldBe('while (match = re.exec("123456789")) accumulate += match + "; "; accum ulate', '"1; 2; 3; 4; 5; 6; 7; 8; 9; "');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698