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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/range/ValidityState-stepMismatch-range-expected.txt

Issue 2366753004: input[type=range]: Updating step attribute should align the value to steps. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 Check stepMismatch results for type=range. 1 Check stepMismatch results for type=range.
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 Empty values 6 Empty values
7 PASS stepMismatchFor("", null, null) is false 7 PASS stepMismatchFor("", null, null) is false
8 PASS stepMismatchFor("", "1.0", "0.1") is false 8 PASS stepMismatchFor("", "1.0", "0.1") is false
9 Integers 9 Integers
10 PASS stepMismatchFor("1", "2", "0") is false 10 PASS stepMismatchFor("1", "2", "0") is false
11 PASS stepMismatchFor("-3", "2", "-4") is false 11 PASS stepMismatchFor("-3", "2", "-4") is false
12 PASS input.max = "5"; stepMismatchFor("5", "3", "0") is false 12 PASS input.max = "5"; stepMismatchFor("5", "3", "0") is false
13 PASS input.value is "3" 13 PASS input.value is "3"
14 Invalid step values 14 Invalid step values
15 PASS stepMismatchFor("-3", "-2", "-4") is false 15 PASS stepMismatchFor("-3", "-2", "-4") is false
16 PASS stepMismatchFor("-3", null, "-4") is false 16 PASS stepMismatchFor("-3", null, "-4") is false
17 PASS stepMismatchFor("-3", undefined, "-4") is false 17 PASS stepMismatchFor("-3", undefined, "-4") is false
18 Updating step attribute
19 PASS input.value is "50"
20 PASS input.step = "15"; input.value is "45"
21 PASS input.step = "20"; input.value is "40"
22 PASS input.value = "5", input.value is "10"
23 PASS input.step = "6"; input.value is "12"
18 Huge numbers and small step; uncomparable 24 Huge numbers and small step; uncomparable
19 PASS stepMismatchFor("3.40282347e+38", "3", "") is false 25 PASS stepMismatchFor("3.40282347e+38", "3", "") is false
20 PASS stepMismatchFor("3.40282346e+38", "3", "") is false 26 PASS stepMismatchFor("3.40282346e+38", "3", "") is false
21 PASS stepMismatchFor("3.40282345e+38", "3", "") is false 27 PASS stepMismatchFor("3.40282345e+38", "3", "") is false
22 Huge numbers and huge step 28 Huge numbers and huge step
23 PASS stepMismatchFor("3.20e+38", "0.20e+38", "") is false 29 PASS stepMismatchFor("3.20e+38", "0.20e+38", "") is false
24 PASS stepMismatchFor("3.20e+38", "0.22e+38", "") is false 30 PASS stepMismatchFor("3.20e+38", "0.22e+38", "") is false
25 Fractional numbers 31 Fractional numbers
26 PASS stepMismatchFor("0.9", "0.1", "") is false 32 PASS stepMismatchFor("0.9", "0.1", "") is false
27 PASS stepMismatchFor("0.9", "0.1000001", "") is false 33 PASS stepMismatchFor("0.9", "0.1000001", "") is false
28 PASS stepMismatchFor("0.9", "0.1000000000000001", "") is false 34 PASS stepMismatchFor("0.9", "0.1000000000000001", "") is false
29 PASS stepMismatchFor("1.0", "0.3333333333333333", "") is false 35 PASS stepMismatchFor("1.0", "0.3333333333333333", "") is false
30 Disabled 36 Disabled
31 PASS stepMismatchFor("1", "2", "0", true) is false 37 PASS stepMismatchFor("1", "2", "0", true) is false
32 PASS successfullyParsed is true 38 PASS successfullyParsed is true
33 39
34 TEST COMPLETE 40 TEST COMPLETE
35 41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698