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

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

Powered by Google App Engine
This is Rietveld 408576698