mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 21:00:06 +00:00
One point to note is that I am not entirely sure what the result of the pre-existing valueAsNumber test should be for this strange case which does not lie exactly on a week/day boundary. Chrome gives a negative timestamp, which seems more wrong than the result we give, and neither gecko or WebKit appear to support the 'week' type. So I'm considering this result acceptable for now, and this may be something that will need more WPT tests added in the future.
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
valueAsNumber getter:
|
|
number: 100
|
|
range: 100
|
|
hidden: NaN
|
|
text: NaN
|
|
search: NaN
|
|
tel: NaN
|
|
url: NaN
|
|
email: NaN
|
|
password: NaN
|
|
date: NaN
|
|
month: NaN
|
|
week: NaN
|
|
time: NaN
|
|
datetime-local: NaN
|
|
color: NaN
|
|
checkbox: NaN
|
|
radio: NaN
|
|
file: NaN
|
|
submit: NaN
|
|
image: NaN
|
|
reset: NaN
|
|
button: NaN
|
|
valueAsNumber setter:
|
|
number did not throw: 100
|
|
range did not throw: 100
|
|
hidden threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
text threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
search threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
tel threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
url threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
email threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
password threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
date did not throw: NaN
|
|
month did not throw: 100
|
|
week did not throw: 345600000
|
|
time did not throw: NaN
|
|
datetime-local did not throw: NaN
|
|
color threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
checkbox threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
radio threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
file threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
submit threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
image threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
reset threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|
|
button threw exception: InvalidStateError: valueAsNumber: Invalid input type used
|