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

Unified Diff: test/webkit/fast/js/date-big-setmonth.js

Issue 20280003: Migrate more tests from blink repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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: test/webkit/fast/js/date-big-setmonth.js
diff --git a/test/webkit/array-tostring-and-join.js b/test/webkit/fast/js/date-big-setmonth.js
similarity index 84%
copy from test/webkit/array-tostring-and-join.js
copy to test/webkit/fast/js/date-big-setmonth.js
index b4fdb51b47f0b450a53fc725a133c27a21c5375d..c985baeb8eb72c94a2cd7da290d90f8cdde2b23c 100644
--- a/test/webkit/array-tostring-and-join.js
+++ b/test/webkit/fast/js/date-big-setmonth.js
@@ -22,15 +22,9 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
description(
-
-"This test checks that toString and join share the same HashSet for visited elements."
-
+'This test checks for a regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=4781">Date.setMonth fails with big values due to overflow</a>.'
);
-var arr = [1, 2];
-var obj = {};
-obj.__proto__.toString = function() { return "*" + arr + "*"; }
-arr[2] = arr;
-arr[3] = obj;
-
-shouldBe("arr.join()", "'1,2,,**'");
+var d = new Date(1970, 0, 1);
+d.setMonth(128);
+shouldBe("d.valueOf()", "new Date(1980, 8, 1).valueOf()");
« no previous file with comments | « test/webkit/fast/js/caller-property-expected.txt ('k') | test/webkit/fast/js/date-big-setmonth-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698