Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / simulated-click-disabled.html
blobe4aabe7f239fa94ab77e8e226a7f9fb1e334c9ec
1 <html>
2 <head>
3 <script>
5 function clickOn(element)
7 if (!window.eventSender)
8 return;
10 var x = element.offsetLeft + element.offsetWidth / 2;
11 var y = element.offsetTop + element.offsetHeight / 2;
12 eventSender.mouseMoveTo(x, y);
13 eventSender.mouseDown();
14 eventSender.mouseUp();
17 function runTest()
19 if (window.testRunner)
20 testRunner.dumpAsText();
22 clickOn(document.querySelector('label'));
23 document.querySelector('div').textContent = document.getElementById('target').checked ? 'FAIL' : 'PASS';
26 </script>
27 </head>
28 <body onload="runTest()">
29 <p>Ensure that simulated click is not dispatched to a disabled node. Clicking on the label should not change the value of the checkbox.</p>
30 <div>
31 <input type="checkbox" id="target" disabled>
32 <label for="target">CLICK ME</label>
33 </div>
34 </body>
35 </html>