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

Side by Side Diff: LayoutTests/fast/forms/number/number-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=number>. 1 Tests for .valueAsNumber with <input type=number>.
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("0") is 0 6 PASS valueAsNumberFor("0") is 0
7 PASS valueAsNumberFor("0.2") is 0.2 7 PASS valueAsNumberFor("0.2") is 0.2
8 PASS valueAsNumberFor(".2") is 0.2 8 PASS valueAsNumberFor(".2") is 0.2
9 PASS valueAsNumberFor("10") is 10 9 PASS valueAsNumberFor("10") is 10
10 PASS valueAsNumberFor("01") is 1 10 PASS valueAsNumberFor("01") is 1
(...skipping 24 matching lines...) Expand all
35 Tests for the valueAsNumber setter: 35 Tests for the valueAsNumber setter:
36 PASS setValueAsNumberAndGetValue(0) is "0" 36 PASS setValueAsNumberAndGetValue(0) is "0"
37 PASS setValueAsNumberAndGetValue(10) is "10" 37 PASS setValueAsNumberAndGetValue(10) is "10"
38 PASS setValueAsNumberAndGetValue(01) is "1" 38 PASS setValueAsNumberAndGetValue(01) is "1"
39 PASS setValueAsNumberAndGetValue(-0) is "0" 39 PASS setValueAsNumberAndGetValue(-0) is "0"
40 PASS setValueAsNumberAndGetValue(-1.2) is "-1.2" 40 PASS setValueAsNumberAndGetValue(-1.2) is "-1.2"
41 PASS setValueAsNumberAndGetValue(1.2e10) is "12000000000" 41 PASS setValueAsNumberAndGetValue(1.2e10) is "12000000000"
42 PASS setValueAsNumberAndGetValue(1.2e-10) is "1.2e-10" 42 PASS setValueAsNumberAndGetValue(1.2e-10) is "1.2e-10"
43 PASS setValueAsNumberAndGetValue(1.2345678901234567e+38) is "1.2345678901234567e +38" 43 PASS setValueAsNumberAndGetValue(1.2345678901234567e+38) is "1.2345678901234567e +38"
44 PASS setValueAsNumberAndGetValue("-3.40282346e+38") is "-3.40282346e+38" 44 PASS setValueAsNumberAndGetValue("-3.40282346e+38") is "-3.40282346e+38"
45 PASS setValueAsNumberAndGetValue("-3.40282348e+38") threw exception Error: Inval idStateError: DOM Exception 11. 45 PASS setValueAsNumberAndGetValue("-3.40282348e+38") threw exception InvalidState Error: An attempt was made to use an object that is not, or is no longer, usable ..
46 PASS setValueAsNumberAndGetValue("3.40282346e+38") is "3.40282346e+38" 46 PASS setValueAsNumberAndGetValue("3.40282346e+38") is "3.40282346e+38"
47 PASS setValueAsNumberAndGetValue("3.40282348e+38") threw exception Error: Invali dStateError: DOM Exception 11. 47 PASS setValueAsNumberAndGetValue("3.40282348e+38") threw exception InvalidStateE rror: An attempt was made to use an object that is not, or is no longer, usable. .
48 Tests to set invalid values to valueAsNumber: 48 Tests to set invalid values to valueAsNumber:
49 PASS setValueAsNumberAndGetValue(null) is "0" 49 PASS setValueAsNumberAndGetValue(null) is "0"
50 PASS setValueAsNumberAndGetValue("foo") threw exception Error: NotSupportedError : DOM Exception 9. 50 PASS setValueAsNumberAndGetValue("foo") threw exception NotSupportedError: The i mplementation did not support the requested type of object or operation..
51 PASS setValueAsNumberAndGetValue(NaN) threw exception Error: NotSupportedError: DOM Exception 9. 51 PASS setValueAsNumberAndGetValue(NaN) threw exception NotSupportedError: The imp lementation did not support the requested type of object or operation..
52 PASS setValueAsNumberAndGetValue(Number.NaN) threw exception Error: NotSupported Error: DOM Exception 9. 52 PASS setValueAsNumberAndGetValue(Number.NaN) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
53 PASS setValueAsNumberAndGetValue(Infinity) threw exception Error: NotSupportedEr ror: DOM Exception 9. 53 PASS setValueAsNumberAndGetValue(Infinity) threw exception NotSupportedError: Th e implementation did not support the requested type of object or operation..
54 PASS setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY) threw exception Error : NotSupportedError: DOM Exception 9. 54 PASS setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY) threw exception NotSu pportedError: The implementation did not support the requested type of object or operation..
55 PASS setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY) threw exception Error : NotSupportedError: DOM Exception 9. 55 PASS setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY) threw exception NotSu pportedError: The implementation did not support the requested type of object or operation..
56 PASS successfullyParsed is true 56 PASS successfullyParsed is true
57 57
58 TEST COMPLETE 58 TEST COMPLETE
59 59
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/number/number-valueasnumber.html ('k') | LayoutTests/fast/forms/range/input-valueasnumber-range.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698