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

Unified Diff: LayoutTests/fast/js/script-tests/date-toisostring.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/date-toisostring.js
diff --git a/LayoutTests/fast/js/script-tests/date-toisostring.js b/LayoutTests/fast/js/script-tests/date-toisostring.js
deleted file mode 100644
index 61aa5e828ba5b1c8885c996cd91ad304ef47ad16..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/script-tests/date-toisostring.js
+++ /dev/null
@@ -1,24 +0,0 @@
-description("Tests for Date.toISOString");
-
-function throwsRangeError(str)
-{
- try {
- eval(str);
- } catch (e) {
- return e instanceof RangeError;
- }
- return false;
-}
-
-shouldThrow("Date.toISOString.call({})");
-shouldThrow("Date.toISOString.call(0)");
-
-shouldBe("new Date(-400).toISOString()", "'1969-12-31T23:59:59.600Z'");
-shouldBe("new Date(0).toISOString()", "'1970-01-01T00:00:00.000Z'");
-shouldBe("new Date('1 January 1500 UTC').toISOString()", "'1500-01-01T00:00:00.000Z'");
-shouldBe("new Date('1 January 2000 UTC').toISOString()", "'2000-01-01T00:00:00.000Z'");
-shouldBe("new Date('1 January 4000 UTC').toISOString()", "'4000-01-01T00:00:00.000Z'");
-shouldBe("new Date('1 January 100000 UTC').toISOString()", "'+100000-01-01T00:00:00.000Z'");
-shouldBe("new Date('1 January -1 UTC').toISOString()", "'-000001-01-01T00:00:00.000Z'");
-shouldBe("new Date('10 March 2000 UTC').toISOString()", "'2000-03-10T00:00:00.000Z'");
-shouldBeTrue('throwsRangeError("new Date(NaN).toISOString()")');

Powered by Google App Engine
This is Rietveld 408576698