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

Side by Side 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 unified diff | Download patch
OLDNEW
1 Test HTMLInputElement::valueAsDate binding. 1 Test HTMLInputElement::valueAsDate binding.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Unsuppported type: 6 Unsuppported type:
7 PASS input.valueAsDate is null 7 PASS input.valueAsDate is null
8 PASS input.valueAsDate = date threw exception InvalidStateError: Failed to set t he 'valueAsDate' property on 'HTMLInputElement': This input element does not sup port Date values.. 8 PASS input.valueAsDate = date threw exception InvalidStateError: Failed to set t he 'valueAsDate' property on 'HTMLInputElement': This input element does not sup port Date values..
9 9
10 Supported type: 10 Supported type:
11 PASS valueAsDate != null is true 11 PASS valueAsDate != null is true
12 PASS typeof valueAsDate is "object" 12 PASS typeof valueAsDate is "object"
13 PASS valueAsDate.constructor.name is "Date" 13 PASS valueAsDate.constructor.name is "Date"
14 Sets an Epoch Date: 14 Sets an Epoch Date:
15 PASS input.value is "1970-01" 15 PASS input.value is "1970-01"
16 PASS input.valueAsDate.getTime() is 0 16 PASS input.valueAsDate.getTime() is 0
17 Sets a number 0: 17 Sets a number 0:
18 PASS input.value is "1970-01" 18 PASS input.valueAsDate = 0 threw exception TypeError: Failed to set the 'valueAs Date' property on 'HTMLInputElement': The provided value is not a Date..
19 PASS input.valueAsDate.getTime() is 0
20 Sets other types: 19 Sets other types:
21 PASS input.value is "" 20 PASS input.value is ""
22 PASS input.value is "" 21 PASS input.valueAsDate = undefined threw exception TypeError: Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date..
23 PASS input.value is "" 22 PASS input.valueAsDate = document threw exception TypeError: Failed to set the ' valueAsDate' property on 'HTMLInputElement': The provided value is not a Date..
24 PASS successfullyParsed is true 23 PASS successfullyParsed is true
25 24
26 TEST COMPLETE 25 TEST COMPLETE
27 26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698