From: machenbach Date: Tue, 28 Jul 2015 10:17:18 +0000 (-0700) Subject: [test] Shorten excessive webkit test. X-Git-Tag: upstream/4.7.83~1145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4d5663a2f432a97721a15044f118154a287a1ed;p=platform%2Fupstream%2Fv8.git [test] Shorten excessive webkit test. BUG= Review URL: https://codereview.chromium.org/1257583005 Cr-Commit-Position: refs/heads/master@{#29895} --- diff --git a/test/webkit/fast/js/excessive-comma-usage-expected.txt b/test/webkit/fast/js/excessive-comma-usage-expected.txt index 2460768..a86a1e8 100644 --- a/test/webkit/fast/js/excessive-comma-usage-expected.txt +++ b/test/webkit/fast/js/excessive-comma-usage-expected.txt @@ -28,7 +28,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE PASS new Function(initializerTestString)() is true PASS new Function(declarationTestString)() is true -FAIL new Function(commaExpressionTestString)() should be true. Threw exception RangeError: Maximum call stack size exceeded +PASS new Function(commaExpressionTestString)() is true PASS successfullyParsed is true TEST COMPLETE diff --git a/test/webkit/fast/js/excessive-comma-usage.js b/test/webkit/fast/js/excessive-comma-usage.js index d30ff6d..414b29b 100644 --- a/test/webkit/fast/js/excessive-comma-usage.js +++ b/test/webkit/fast/js/excessive-comma-usage.js @@ -24,17 +24,17 @@ description("Test that we can handle excessively large initializer lists"); var initializerTestString = "var a=0"; -for (var i = 0; i < 50000; i++) +for (var i = 0; i < 5000; i++) initializerTestString += ",a"+i+"="+i; initializerTestString += ";return true;"; var declarationTestString = "var a"; -for (var i = 0; i < 50000; i++) +for (var i = 0; i < 5000; i++) declarationTestString += ",a"+i; declarationTestString += ";return true;"; var commaExpressionTestString = "1"; -for (var i = 0; i < 50000; i++) +for (var i = 0; i < 5000; i++) commaExpressionTestString += ",1"; commaExpressionTestString += ";return true;";