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

Side by Side Diff: LayoutTests/fast/js/script-tests/array-slow-put.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 "Tests that defining a setter on the Array prototype works."
3 );
4
5 var ouches = 0;
6 Array.prototype.__defineSetter__("3", function() { debug("Ouch!"); ouches++; });
7
8 function foo() {
9 var result = [];
10 result.length = 5;
11 for (var i = 0; i < result.length; ++i)
12 result[i] = i;
13 return result;
14 }
15
16 for (var i = 0; i < 100; ++i)
17 shouldBe("\"" + foo().join(",") + "\"", "\"0,1,2,,4\"");
18
19 shouldBe("ouches", "100");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698