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

Unified Diff: LayoutTests/fast/js/script-tests/toString-overrides.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/toString-overrides.js
diff --git a/LayoutTests/fast/js/script-tests/toString-overrides.js b/LayoutTests/fast/js/script-tests/toString-overrides.js
deleted file mode 100644
index 1e633f53e7d75e5a30d6ddb71d1e5980e24d7bfb..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/script-tests/toString-overrides.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// 15.4 Array Objects
-// (c) 2001 Harri Porten <porten@kde.org>
-
-description(
-'This test checks for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=4147">4147: Array.toString() and toLocaleString() improvements from KDE KJS</a>.'
-);
-
-// backup
-var backupNumberToString = Number.prototype.toString;
-var backupNumberToLocaleString = Number.prototype.toLocaleString;
-var backupRegExpToString = RegExp.prototype.toString;
-var backupRegExpToLocaleString = RegExp.prototype.toLocaleString;
-
-// change functions
-Number.prototype.toString = function() { return "toString"; }
-Number.prototype.toLocaleString = function() { return "toLocaleString"; }
-RegExp.prototype.toString = function() { return "toString2"; }
-RegExp.prototype.toLocaleString = function() { return "toLocaleString2"; }
-
-// the tests
-shouldBe("[1].toString()", "'1'");
-shouldBe("[1].toLocaleString()", "'toLocaleString'");
-Number.prototype.toLocaleString = "invalid";
-shouldBe("[1].toLocaleString()", "'1'");
-shouldBe("[/r/].toString()", "'toString2'");
-shouldBe("[/r/].toLocaleString()", "'toLocaleString2'");
-RegExp.prototype.toLocaleString = "invalid";
-shouldBe("[/r/].toLocaleString()", "'toString2'");
-
-var caught = false;
-try {
-[{ toString : 0 }].toString();
-} catch (e) {
-caught = true;
-}
-shouldBeTrue("caught");
-
-// restore
-Number.prototype.toString = backupNumberToString;
-Number.prototype.toLocaleString = backupNumberToLocaleString;
-RegExp.prototype.toString = backupRegExpToString;
-RegExp.prototype.toLocaleString = backupRegExpToLocaleString;
« no previous file with comments | « LayoutTests/fast/js/script-tests/toString-exception.js ('k') | LayoutTests/fast/js/stack-overflow-arrity-catch.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698