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

Side by Side Diff: LayoutTests/fast/forms/range/range-stepup-stepdown-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 Check stepUp() and stepDown() bahevior for range type. 1 Check stepUp() and stepDown() bahevior for range type.
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 function arguments are (min, max, step, value, [stepCount]) 6 function arguments are (min, max, step, value, [stepCount])
7 Using the default values 7 Using the default values
8 PASS stepUpExplicitBounds(null, null, null, "") is "51" 8 PASS stepUpExplicitBounds(null, null, null, "") is "51"
9 PASS stepDownExplicitBounds(null, null, null, "") is "49" 9 PASS stepDownExplicitBounds(null, null, null, "") is "49"
10 Non-number arguments (stepCount) 10 Non-number arguments (stepCount)
(...skipping 14 matching lines...) Expand all
25 PASS setInputAttributes(null, null, null, "0"); input.stepUp(1,2); input.value i s "1" 25 PASS setInputAttributes(null, null, null, "0"); input.stepUp(1,2); input.value i s "1"
26 PASS setInputAttributes(null, null, null, "1"); input.stepDown(1,3); input.value is "0" 26 PASS setInputAttributes(null, null, null, "1"); input.stepDown(1,3); input.value is "0"
27 Invalid step value 27 Invalid step value
28 PASS stepUpExplicitBounds(null, null, "foo", "0") is "1" 28 PASS stepUpExplicitBounds(null, null, "foo", "0") is "1"
29 PASS stepUpExplicitBounds(null, null, "0", "1") is "2" 29 PASS stepUpExplicitBounds(null, null, "0", "1") is "2"
30 PASS stepUpExplicitBounds(null, null, "-1", "2") is "3" 30 PASS stepUpExplicitBounds(null, null, "-1", "2") is "3"
31 PASS stepDownExplicitBounds(null, null, "foo", "1") is "0" 31 PASS stepDownExplicitBounds(null, null, "foo", "1") is "0"
32 PASS stepDownExplicitBounds(null, null, "0", "2") is "1" 32 PASS stepDownExplicitBounds(null, null, "0", "2") is "1"
33 PASS stepDownExplicitBounds(null, null, "-1", "3") is "2" 33 PASS stepDownExplicitBounds(null, null, "-1", "3") is "2"
34 Step=any 34 Step=any
35 PASS stepUpExplicitBounds(null, null, "any", "1") threw exception Error: Invalid StateError: DOM Exception 11. 35 PASS stepUpExplicitBounds(null, null, "any", "1") threw exception InvalidStateEr ror: An attempt was made to use an object that is not, or is no longer, usable..
36 PASS stepDownExplicitBounds(null, null, "any", "1") threw exception Error: Inval idStateError: DOM Exception 11. 36 PASS stepDownExplicitBounds(null, null, "any", "1") threw exception InvalidState Error: An attempt was made to use an object that is not, or is no longer, usable ..
37 Overflow/underflow 37 Overflow/underflow
38 PASS stepUpExplicitBounds(null, "100", "1", "99") is "100" 38 PASS stepUpExplicitBounds(null, "100", "1", "99") is "100"
39 PASS stepUpExplicitBounds(null, "100", "1", "100") threw exception Error: Invali dStateError: DOM Exception 11. 39 PASS stepUpExplicitBounds(null, "100", "1", "100") threw exception InvalidStateE rror: An attempt was made to use an object that is not, or is no longer, usable. .
40 PASS input.value is "100" 40 PASS input.value is "100"
41 PASS stepUpExplicitBounds(null, "100", "1", "99", "2") threw exception Error: In validStateError: DOM Exception 11. 41 PASS stepUpExplicitBounds(null, "100", "1", "99", "2") threw exception InvalidSt ateError: An attempt was made to use an object that is not, or is no longer, usa ble..
42 PASS input.value is "99" 42 PASS input.value is "99"
43 PASS stepDownExplicitBounds("0", null, "1", "1") is "0" 43 PASS stepDownExplicitBounds("0", null, "1", "1") is "0"
44 PASS stepDownExplicitBounds("0", null, "1", "0") threw exception Error: InvalidS tateError: DOM Exception 11. 44 PASS stepDownExplicitBounds("0", null, "1", "0") threw exception InvalidStateErr or: An attempt was made to use an object that is not, or is no longer, usable..
45 PASS input.value is "0" 45 PASS input.value is "0"
46 PASS stepDownExplicitBounds("0", null, "1", "1", "2") threw exception Error: Inv alidStateError: DOM Exception 11. 46 PASS stepDownExplicitBounds("0", null, "1", "1", "2") threw exception InvalidSta teError: An attempt was made to use an object that is not, or is no longer, usab le..
47 PASS input.value is "1" 47 PASS input.value is "1"
48 PASS stepDownExplicitBounds(null, null, "3.40282346e+38", "1", "2") threw except ion Error: InvalidStateError: DOM Exception 11. 48 PASS stepDownExplicitBounds(null, null, "3.40282346e+38", "1", "2") threw except ion InvalidStateError: An attempt was made to use an object that is not, or is n o longer, usable..
49 PASS stepUpExplicitBounds(-100, 0, 1, -1) is "0" 49 PASS stepUpExplicitBounds(-100, 0, 1, -1) is "0"
50 PASS stepUpExplicitBounds(null, 0, 1, 0) threw exception Error: InvalidStateErro r: DOM Exception 11. 50 PASS stepUpExplicitBounds(null, 0, 1, 0) threw exception InvalidStateError: An a ttempt was made to use an object that is not, or is no longer, usable..
51 PASS stepUpExplicitBounds(-100, 0, 1, -1, 2) threw exception Error: InvalidState Error: DOM Exception 11. 51 PASS stepUpExplicitBounds(-100, 0, 1, -1, 2) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
52 PASS input.value is "-1" 52 PASS input.value is "-1"
53 PASS stepUpExplicitBounds(null, null, "3.40282346e+38", "1", "2") threw exceptio n Error: InvalidStateError: DOM Exception 11. 53 PASS stepUpExplicitBounds(null, null, "3.40282346e+38", "1", "2") threw exceptio n InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
54 stepDown()/stepUp() for stepMismatch values 54 stepDown()/stepUp() for stepMismatch values
55 PASS stepUpExplicitBounds(null, null, 2, 1) is "4" 55 PASS stepUpExplicitBounds(null, null, 2, 1) is "4"
56 PASS input.stepDown(); input.value is "2" 56 PASS input.stepDown(); input.value is "2"
57 PASS stepUpExplicitBounds(0, null, 10, 9, 9) is "100" 57 PASS stepUpExplicitBounds(0, null, 10, 9, 9) is "100"
58 PASS stepDownExplicitBounds(0, null, 10, 19) is "10" 58 PASS stepDownExplicitBounds(0, null, 10, 19) is "10"
59 value + step is <= max, but rounded result would be > max. 59 value + step is <= max, but rounded result would be > max.
60 PASS stepUpExplicitBounds(null, 99, 10, 89) threw exception Error: InvalidStateE rror: DOM Exception 11. 60 PASS stepUpExplicitBounds(null, 99, 10, 89) threw exception InvalidStateError: A n attempt was made to use an object that is not, or is no longer, usable..
61 Huge value and small step 61 Huge value and small step
62 PASS stepUpExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38" 62 PASS stepUpExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38"
63 PASS stepDownExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38" 63 PASS stepDownExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38"
64 Fractional numbers 64 Fractional numbers
65 PASS stepUpExplicitBounds(null, null, 0.33333333333333333, 0, 3) is "1" 65 PASS stepUpExplicitBounds(null, null, 0.33333333333333333, 0, 3) is "1"
66 PASS stepUpExplicitBounds(null, null, 0.1, 1) is "1.1" 66 PASS stepUpExplicitBounds(null, null, 0.1, 1) is "1.1"
67 PASS stepUpExplicitBounds(null, null, 0.1, 1, 8) is "1.8" 67 PASS stepUpExplicitBounds(null, null, 0.1, 1, 8) is "1.8"
68 PASS stepUpExplicitBounds(null, null, 0.1, 1, 10) is "2" 68 PASS stepUpExplicitBounds(null, null, 0.1, 1, 10) is "2"
69 PASS input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepU p(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepU p(); input.value is "3" 69 PASS input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepU p(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepU p(); input.value is "3"
70 PASS stepUpExplicitBounds(0, 1, 0.003921568627450980, 0, 255) is "1" 70 PASS stepUpExplicitBounds(0, 1, 0.003921568627450980, 0, 255) is "1"
71 PASS for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value is "0" 71 PASS for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value is "0"
72 PASS stepDownExplicitBounds(null, null, 0.1, 1, 8) is "0.2" 72 PASS stepDownExplicitBounds(null, null, 0.1, 1, 8) is "0.2"
73 PASS stepDownExplicitBounds(null, null, 0.1, 1) is "0.9" 73 PASS stepDownExplicitBounds(null, null, 0.1, 1) is "0.9"
74 PASS successfullyParsed is true 74 PASS successfullyParsed is true
75 75
76 TEST COMPLETE 76 TEST COMPLETE
77 77
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698