Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / controlclick-no-onclick.html
blob5c44babd6b0d75bb4930a408f843df933641729e
1 <html>
2 <body>
3 <div id="box" onclick="document.getElementById('result').innerHTML = 'FAIL';" style="border:1px dotted red">This tests to make sure that a control click does not result in a click event on the Mac.</div>
4 <p id='result'>PASS</p>
5 </body>
6 </html>
8 <script>
9 if (window.testRunner) {
10 testRunner.dumpAsText();
12 var isMacOSX = navigator.userAgent.indexOf("Mac OS X") != -1;
13 if (isMacOSX) {
14 var box = document.getElementById("box");
15 var x = box.offsetParent.offsetLeft + box.offsetLeft + box.offsetWidth / 2;
16 var y = box.offsetParent.offsetTop + box.offsetTop + box.offsetHeight / 2;
17 eventSender.dragMode = false;
18 eventSender.mouseMoveTo(x, y);
19 eventSender.mouseDown(0, ['ctrlKey']);
20 eventSender.mouseUp(0, ['ctrlKey']);
24 </script>