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

Side by Side Diff: LayoutTests/fast/forms/time/time-valueasnumber-expected.txt

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 Tests for .valueAsNumber with <input type=time>. 1 Tests for .valueAsNumber with <input type=time>.
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 PASS valueAsNumberFor("") is Number.NaN 6 PASS valueAsNumberFor("") is Number.NaN
7 PASS valueAsNumberFor("00:00:00.000") is Date.UTC(1970, 0, 1, 0, 0, 0, 0) 7 PASS valueAsNumberFor("00:00:00.000") is Date.UTC(1970, 0, 1, 0, 0, 0, 0)
8 PASS valueAsNumberFor("04:35") is Date.UTC(1970, 0, 1, 4, 35, 0, 0) 8 PASS valueAsNumberFor("04:35") is Date.UTC(1970, 0, 1, 4, 35, 0, 0)
9 PASS valueAsNumberFor("23:59:59.999") is Date.UTC(1970, 0, 1, 23, 59, 59, 999) 9 PASS valueAsNumberFor("23:59:59.999") is Date.UTC(1970, 0, 1, 23, 59, 59, 999)
10 PASS setValueAsNumberAndGetValue(0, 0, 0, 0) is "00:00" 10 PASS setValueAsNumberAndGetValue(0, 0, 0, 0) is "00:00"
11 PASS setValueAsNumberAndGetValue(0, 0, 1, 0) is "00:00:01" 11 PASS setValueAsNumberAndGetValue(0, 0, 1, 0) is "00:00:01"
12 PASS setValueAsNumberAndGetValue(0, 0, 0, 2) is "00:00:00.002" 12 PASS setValueAsNumberAndGetValue(0, 0, 0, 2) is "00:00:00.002"
13 PASS setValueAsNumberAndGetValue(11, 59, 59, 999) is "11:59:59.999" 13 PASS setValueAsNumberAndGetValue(11, 59, 59, 999) is "11:59:59.999"
14 PASS setValueAsNumberAndGetValue(12, 0, 0, 0) is "12:00" 14 PASS setValueAsNumberAndGetValue(12, 0, 0, 0) is "12:00"
15 PASS setValueAsNumberAndGetValue(23, 59, 59, 999) is "23:59:59.999" 15 PASS setValueAsNumberAndGetValue(23, 59, 59, 999) is "23:59:59.999"
16 PASS setValueAsNumberAndGetValue(24, 0, 0, 0) is "00:00" 16 PASS setValueAsNumberAndGetValue(24, 0, 0, 0) is "00:00"
17 PASS setValueAsNumberAndGetValue(48, 0, 13, 0) is "00:00:13" 17 PASS setValueAsNumberAndGetValue(48, 0, 13, 0) is "00:00:13"
18 PASS setValueAsNumberAndGetValue(-23, -59, -59, 0) is "00:00:01" 18 PASS setValueAsNumberAndGetValue(-23, -59, -59, 0) is "00:00:01"
19 Tests to set invalid values to valueAsNumber: 19 Tests to set invalid values to valueAsNumber:
20 PASS input.value = ""; input.valueAsNumber = null; input.value is "00:00" 20 PASS input.value = ""; input.valueAsNumber = null; input.value is "00:00"
21 PASS input.valueAsNumber = "foo" threw exception Error: NotSupportedError: DOM E xception 9. 21 PASS input.valueAsNumber = "foo" threw exception NotSupportedError: The implemen tation did not support the requested type of object or operation..
22 PASS input.valueAsNumber = NaN threw exception Error: NotSupportedError: DOM Exc eption 9. 22 PASS input.valueAsNumber = NaN threw exception NotSupportedError: The implementa tion did not support the requested type of object or operation..
23 PASS input.valueAsNumber = Number.NaN threw exception Error: NotSupportedError: DOM Exception 9. 23 PASS input.valueAsNumber = Number.NaN threw exception NotSupportedError: The imp lementation did not support the requested type of object or operation..
24 PASS input.valueAsNumber = Infinity threw exception Error: NotSupportedError: DO M Exception 9. 24 PASS input.valueAsNumber = Infinity threw exception NotSupportedError: The imple mentation did not support the requested type of object or operation..
25 PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception Error: NotSu pportedError: DOM Exception 9. 25 PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception NotSupported Error: The implementation did not support the requested type of object or operat ion..
26 PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception Error: NotSu pportedError: DOM Exception 9. 26 PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception NotSupported Error: The implementation did not support the requested type of object or operat ion..
27 Step attribute value and string representation: 27 Step attribute value and string representation:
28 PASS input.step = "1"; setValueAsNumberAndGetValue(0, 0, 0, 0) is "00:00:00" 28 PASS input.step = "1"; setValueAsNumberAndGetValue(0, 0, 0, 0) is "00:00:00"
29 PASS input.step = "0.001"; setValueAsNumberAndGetValue(0, 0, 0, 0) is "00:00:00. 000" 29 PASS input.step = "0.001"; setValueAsNumberAndGetValue(0, 0, 0, 0) is "00:00:00. 000"
30 PASS successfullyParsed is true 30 PASS successfullyParsed is true
31 31
32 TEST COMPLETE 32 TEST COMPLETE
33 33
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/time/time-valueasnumber.html ('k') | LayoutTests/fast/forms/week/input-valueasnumber-week.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698