Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / slider-thumb-drag-release.html
blob4fc119028bc014faf003817131ee297761cf28b8
1 <html>
2 <head>
3 <script>
5 // Tests that the slider thumb is repainted correctly when the mouse that's
6 // dragging it releases outside of the track. The result should be a thumb
7 // painted in the released state.
9 var ARBITRARY_DELTA = 50;
11 function clickAndDragDiagonally(element)
13 if (!window.eventSender)
14 return;
16 var maxX = element.offsetLeft + element.offsetWidth;
17 var x = maxX / 2;
18 var y = element.offsetTop + element.offsetHeight / 2;
19 eventSender.mouseMoveTo(x, y);
20 eventSender.mouseDown();
21 eventSender.mouseMoveTo(maxX, y + ARBITRARY_DELTA);
22 eventSender.mouseUp();
25 function runTest()
27 clickAndDragDiagonally(document.getElementById('slider'));
30 </script>
31 </head>
32 <body onload="runTest()">
33 <input id="slider" type="range" value="0">
34 </body>
35 </html>