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

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

Issue 84693008: Improve HTMLInputElement exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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=week>. 1 Tests for .valueAsNumber with <input type=week>.
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("2007-W01") is Date.UTC(2007, 0, 1) 7 PASS valueAsNumberFor("2007-W01") is Date.UTC(2007, 0, 1)
8 PASS valueAsNumberFor("2008-W01") is Date.UTC(2007, 11, 31) 8 PASS valueAsNumberFor("2008-W01") is Date.UTC(2007, 11, 31)
9 PASS valueAsNumberFor("2003-W01") is Date.UTC(2002, 11, 30) 9 PASS valueAsNumberFor("2003-W01") is Date.UTC(2002, 11, 30)
10 PASS valueAsNumberFor("2004-W01") is Date.UTC(2003, 11, 29, 0, 0, 0, 0) 10 PASS valueAsNumberFor("2004-W01") is Date.UTC(2003, 11, 29, 0, 0, 0, 0)
(...skipping 15 matching lines...) Expand all
26 PASS setValueAsNumberAndGetValue(2010, 0, 11) is "2010-W02" 26 PASS setValueAsNumberAndGetValue(2010, 0, 11) is "2010-W02"
27 PASS setValueAsNumberAndGetValue(2010, 0, 17) is "2010-W02" 27 PASS setValueAsNumberAndGetValue(2010, 0, 17) is "2010-W02"
28 PASS setValueAsNumberAndGetValue(2010, 11, 31) is "2010-W52" 28 PASS setValueAsNumberAndGetValue(2010, 11, 31) is "2010-W52"
29 Around the minimum/maximum values: 29 Around the minimum/maximum values:
30 PASS setValueAsNumberAndGetValue(0, 11, 31) is "" 30 PASS setValueAsNumberAndGetValue(0, 11, 31) is ""
31 PASS setValueAsNumberAndGetValue(1, 0, 1) is "0001-W01" 31 PASS setValueAsNumberAndGetValue(1, 0, 1) is "0001-W01"
32 PASS setValueAsNumberAndGetValue(275760, 8, 8) is "275760-W37" 32 PASS setValueAsNumberAndGetValue(275760, 8, 8) is "275760-W37"
33 PASS setValueAsNumberAndGetValue(275760, 8, 13) is "275760-W37" 33 PASS setValueAsNumberAndGetValue(275760, 8, 13) is "275760-W37"
34 Tests to set invalid values to valueAsNumber: 34 Tests to set invalid values to valueAsNumber:
35 PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-W01" 35 PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-W01"
36 PASS input.valueAsNumber = "foo" threw exception NotSupportedError: The implemen tation did not support the requested type of object or operation.. 36 PASS input.valueAsNumber = "foo" threw exception NotSupportedError: Failed to se t the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
37 PASS input.valueAsNumber = NaN threw exception NotSupportedError: The implementa tion did not support the requested type of object or operation.. 37 PASS input.valueAsNumber = NaN threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
38 PASS input.valueAsNumber = Number.NaN threw exception NotSupportedError: The imp lementation did not support the requested type of object or operation.. 38 PASS input.valueAsNumber = Number.NaN threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
39 PASS input.valueAsNumber = Infinity threw exception NotSupportedError: The imple mentation did not support the requested type of object or operation.. 39 PASS input.valueAsNumber = Infinity threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is i nfinite..
40 PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception NotSupported Error: The implementation did not support the requested type of object or operat ion.. 40 PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception NotSupported Error: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The val ue provided is infinite..
41 PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception NotSupported Error: The implementation did not support the requested type of object or operat ion.. 41 PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception NotSupported Error: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The val ue provided is infinite..
42 PASS input.valueAsNumber = Date.UTC(275760, 8, 14) threw exception NotSupportedE rror: The implementation did not support the requested type of object or operati on.. 42 PASS input.valueAsNumber = Date.UTC(275760, 8, 14) threw exception NotSupportedE rror: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The valu e provided is not a number..
43 PASS successfullyParsed is true 43 PASS successfullyParsed is true
44 44
45 TEST COMPLETE 45 TEST COMPLETE
46 46
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/week/input-valueasnumber-week.html ('k') | LayoutTests/fast/forms/week/week-setrangetext-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698