Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / window-events-bubble2.html
blob4e92aa2c5ab495a1bb9749c3293a1ad4bf119aa2
1 <html>
2 <head>
3 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
9 function test()
11 if (window.eventSender) {
12 eventSender.mouseMoveTo(52, 52);
13 eventSender.mouseDown();
14 eventSender.mouseUp();
16 window.setTimeout('finish()', 0);
19 function finish()
21 if (window.testRunner)
22 testRunner.notifyDone();
25 window.onclick = function(e) { log("Window.onClick fired. Test Passed."); };
27 function log(text) {
28 document.getElementById("result").innerHTML = text;
30 </script>
32 </head>
33 <body onload="test()">
34 Tests that preventDefault() will still allow window events to bubble.
35 <div id="d1" style="position: absolute; top: 50; left: 50; border: solid thin" onclick="log('preventDefault called. Test Failed.'); event.preventDefault();">
36 Clicking here should fire window.onclick. This will match Firefox behavior.
37 </div>
39 <div id="result" style="position: absolute; top: 100; left: 50;"><br></div>
40 </body>
41 </html>