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

Side by Side Diff: LayoutTests/accessibility/input-slider-change-value-by-percent.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: 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
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
11 <script>
12
13 description("Check whether changing slider's value without step attribute works properly");
14
15 if (window.accessibilityController) {
16 // Checking whether step is greater than one
17 var range1 = accessibilityController.accessibleElementById("range1");
18 shouldBe("range1.intValue", "50");
19 range1.increment();
20 shouldBe("range1.intValue", "55");
21 range1.increment();
22 shouldBe("range1.intValue", "60");
23 range1.decrement();
24 shouldBe("range1.intValue", "55");
25 range1.increment();
26 shouldBe("range1.intValue", "60");
27
28 // Checking whether step is less than one
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 </script>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698