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

Side by Side Diff: LayoutTests/accessibility/input-type-range-value-change.html

Issue 1071873004: Changing slider values do not work properly when percent change of a step is less than one. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Just did some cleanup Created 5 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/accessibility/input-type-range-value-change-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body>
7
8 <input id="range1" type="range" min="0" max="100" value="50">
9 <input id="range2" type="range" min="0" max="10" value="5">
10 <input id="range3" type="range" min="0" max="50" value="10" step="5">
11
12 <script>
13
14 description("Check whether changing slider's value without step attribute works properly");
15
16 if (window.accessibilityController) {
17 // Checking whether step is greater than one
18 var range1 = accessibilityController.accessibleElementById("range1");
19 shouldBe("range1.intValue", "50");
20 range1.increment();
21 shouldBe("range1.intValue", "51");
22 range1.increment();
23 shouldBe("range1.intValue", "52");
24 range1.decrement();
25 shouldBe("range1.intValue", "51");
26 range1.increment();
27 shouldBe("range1.intValue", "52");
28
29 var range2 = accessibilityController.accessibleElementById("range2");
30 shouldBe("range2.intValue", "5");
31 range2.increment();
32 shouldBe("range2.intValue", "6");
33 range2.increment();
34 shouldBe("range2.intValue", "7");
35 range2.decrement();
36 shouldBe("range2.intValue", "6");
37 range2.increment();
38 shouldBe("range2.intValue", "7");
39
40 var range3 = accessibilityController.accessibleElementById("range3");
41 shouldBe("range3.intValue", "10");
42 range3.increment();
43 shouldBe("range3.intValue", "15");
44 range3.increment();
45 shouldBe("range3.intValue", "20");
46 range3.decrement();
47 shouldBe("range3.intValue", "15");
48 range3.increment();
49 shouldBe("range3.intValue", "20");
50 }
51 </script>
52 </body>
53 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/input-type-range-value-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698