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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/month/input-valueasdate-expected.txt

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
Index: third_party/WebKit/LayoutTests/fast/forms/month/input-valueasdate-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/forms/month/input-valueasdate-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/month/input-valueasdate-expected.txt
index 103437c89b41ed38604474697d49a20bef1a7582..f31aca5c4592cb5d2098d0b2f43e910889a055b5 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/month/input-valueasdate-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/forms/month/input-valueasdate-expected.txt
@@ -15,12 +15,11 @@ Sets an Epoch Date:
PASS input.value is "1970-01"
PASS input.valueAsDate.getTime() is 0
Sets a number 0:
-PASS input.value is "1970-01"
-PASS input.valueAsDate.getTime() is 0
+PASS input.valueAsDate = 0 threw exception TypeError: Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date..
Sets other types:
PASS input.value is ""
-PASS input.value is ""
-PASS input.value is ""
+PASS input.valueAsDate = undefined threw exception TypeError: Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date..
+PASS input.valueAsDate = document threw exception TypeError: Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date..
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698