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

Side by Side Diff: LayoutTests/fast/events/onchange-range-slider.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 </head> 4 </head>
5 <body> 5 <body>
6 <p>This test verifies that updating the slider for an input element with type=ra nge fires a change event.</p> 6 <p>This test verifies that updating the slider for an input element with type=ra nge fires a change event.</p>
7 7
8 <!-- See bug 84674 --> 8 <!-- See bug 84674 -->
9 <input id="slider" type="range" min="0" max="3" value="0"></input> 9 <input id="slider" type="range" min="0" max="3" value="0"></input>
10 <pre id="console"></pre> 10 <pre id="console"></pre>
11 <script src="../js/resources/js-test-pre.js"></script> 11 <script src="../../resources/js-test.js"></script>
12 <script> 12 <script>
13 var receivedChangeEvent = false; 13 var receivedChangeEvent = false;
14 var slider; 14 var slider;
15 15
16 function onChange(e) 16 function onChange(e)
17 { 17 {
18 testPassed('Change event fired.'); 18 testPassed('Change event fired.');
19 receivedChangeEvent = true; 19 receivedChangeEvent = true;
20 shouldBeEqualToString("slider.value", "0"); 20 shouldBeEqualToString("slider.value", "0");
21 } 21 }
(...skipping 16 matching lines...) Expand all
38 eventSender.mouseMoveTo(x, y); 38 eventSender.mouseMoveTo(x, y);
39 eventSender.mouseDown(); 39 eventSender.mouseDown();
40 eventSender.mouseUp(); 40 eventSender.mouseUp();
41 41
42 if (!receivedChangeEvent) 42 if (!receivedChangeEvent)
43 testFailed('Change event not fired.'); 43 testFailed('Change event not fired.');
44 } 44 }
45 </script> 45 </script>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/onblur-remove.html ('k') | LayoutTests/fast/events/onchange-setvalue.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698