Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / scrollbars / scrollbar-miss-mousemove-disabled.html
blob8c79e4655d7e4926c892c9e19db9550cb04b607e
1 <html>
2 <body style="margin:0">
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
8 </script>
9 <form name="form1">
10 <textarea name="text1" style="border:2px solid black;overflow:auto;height:400px;width:400px; position:absolute;">
111 </textarea>
112 </form>
113 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=27289">bug
114 27289</a>: This tests that mouse clicks/releases on scrollbars are handled
115 properly even is there was no mouse move onto the scrollbar; this is the
116 disabled control case. On success, the text should begin with "zx".<p/>
117 <div id="console"></div>
118 <script>
119 if (window.eventSender) {
120 document.form1.text1.disabled = true;
121 document.form1.style.display = "none";
122 eventSender.mouseMoveTo(390, 10);
123 document.form1.style.display = "";
124 eventSender.mouseDown();
125 eventSender.mouseUp();
126 eventSender.mouseMoveTo(390, 350);
127 eventSender.mouseMoveTo(4,350);
128 eventSender.mouseDown();
129 eventSender.mouseUp();
130 eventSender.mouseMoveTo(4,4);
131 document.form1.text1.disabled = false;
132 eventSender.mouseDown();
133 eventSender.mouseUp();
134 eventSender.keyDown('z');
135 setTimeout(finished, 500);
138 function finished()
140 document.getElementById('console').innerHTML
141 = "Text is \"" + document.form1.text1.value + "\"";
142 window.testRunner.notifyDone();
144 </script>
145 </body>
146 </html>