Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / range / slider-inline-crash.html
blob8c5608cbf23110d5ac4837147d8c1919ebadfa54
1 <!DOCTYLE html>
2 <html>
3 <style>
4 input[type="range"]::-webkit-slider-container,
5 input[type="range"]::-webkit-slider-runnable-track,
6 input[type="range"]::-webkit-slider-thumb {
7 display: inline;
9 </style>
10 <p>This test passes if dragging the thumb does not crash.</p>
11 <input id="slider" type="range">
12 <script>
13 function runTest()
15 if (!window.testRunner || !window.eventSender)
16 return;
17 testRunner.dumpAsText();
19 var slider = document.getElementById("slider");
20 var x = slider.offsetLeft + slider.offsetWidth / 2;
21 var y = slider.offsetTop + slider.offsetHeight / 2;
22 eventSender.mouseMoveTo(x, y);
23 eventSender.mouseDown();
24 eventSender.mouseUp();
27 runTest();
28 </script>
29 </html>