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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/date/input-valueasdate-date.html

Issue 2265443002: Fix an overflow in valueAsDate setter of temporal input types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: accept null Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/date/input-valueasdate-date-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/date/input-valueasdate-date.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/date/input-valueasdate-date.html b/third_party/WebKit/LayoutTests/fast/forms/date/input-valueasdate-date.html
index 5faea360c1e3795633fa7632dd52d7d7928fdee9..8271cb480796690dfea84b69b1df7ea666cd8687 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/date/input-valueasdate-date.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/date/input-valueasdate-date.html
@@ -45,7 +45,7 @@ shouldBeEqualToString('setValueAsDateAndGetValue(275760, 8, 13)', '275760-09-13'
shouldBeEqualToString('setValueAsDateAndGetValue(275760, 8, 14)', ''); // Date of JavaScript can't represent this.
debug('Invalid objects:');
-shouldBeEqualToString('input.value = "2010-01-01"; input.valueAsDate = document; input.value', '');
+shouldThrow('input.valueAsDate = document');
shouldBeEqualToString('input.value = "2010-01-01"; input.valueAsDate = null; input.value', '');
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/date/input-valueasdate-date-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698