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

Unified Diff: LayoutTests/fast/js/script-tests/object-bad-time.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/js/script-tests/object-bad-time.js
diff --git a/LayoutTests/fast/js/script-tests/object-bad-time.js b/LayoutTests/fast/js/script-tests/object-bad-time.js
deleted file mode 100644
index 14c42e5a0950a75e51937f88d1542d661dda150b..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/script-tests/object-bad-time.js
+++ /dev/null
@@ -1,35 +0,0 @@
-description(
-"Tests that defining a setter on the prototype of an object used for indexed storage works even if it is done after objects with indexed storage are allocated."
-);
-
-function Cons() {
-}
-
-var ouches = 0;
-
-function foo(haveABadTime) {
- var result = new Cons();
- result.length = 5;
- for (var i = 0; i < result.length; ++i) {
- if (i == haveABadTime) {
- debug("Henceforth I will have a bad time.");
- Cons.prototype.__defineSetter__("3", function() { debug("Ouch!"); ouches++; });
- }
- result[i] = i;
- }
- return result;
-}
-
-var expected = "\"0,1,2,3,4\"";
-
-for (var i = 0; i < 1000; ++i) {
- var haveABadTime;
- if (i == 950) {
- haveABadTime = 2;
- expected = "\"0,1,2,,4\"";
- } else
- haveABadTime = -1;
- shouldBe("\"" + Array.prototype.join.apply(foo(haveABadTime), [","]) + "\"", expected);
-}
-
-shouldBe("ouches", "50");

Powered by Google App Engine
This is Rietveld 408576698