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

Side by Side Diff: LayoutTests/fast/js/script-tests/excessive-comma-usage.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("Test that we can handle excessively large initializer lists");
2
3 var initializerTestString = "var a=0";
4 for (var i = 0; i < 50000; i++)
5 initializerTestString += ",a"+i+"="+i;
6 initializerTestString += ";return true;";
7
8 var declarationTestString = "var a";
9 for (var i = 0; i < 50000; i++)
10 declarationTestString += ",a"+i;
11 declarationTestString += ";return true;";
12
13 var commaExpressionTestString = "1";
14 for (var i = 0; i < 50000; i++)
15 commaExpressionTestString += ",1";
16 commaExpressionTestString += ";return true;";
17
18 shouldBeTrue("new Function(initializerTestString)()");
19 shouldBeTrue("new Function(declarationTestString)()");
20 shouldBeTrue("new Function(commaExpressionTestString)()");
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/script-tests/exception-registerfile-shrink.js ('k') | LayoutTests/fast/js/script-tests/function-apply.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698