Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / event-hit-testing-fallback-to-iframe.html
blob1c38a1fe2ff1ee605bbc245ce9b32d4c078651e4
1 <!DOCTYPE html>
3 <body>
4 <iframe src="resources/body-overflow-iframe.html" height="100px"></iframe>
5 <div id='console'></div>
6 </body>
8 <script src="../../resources/js-test.js"></script>
9 <script>
10 description("Test that when the hit test of input event in an iframe does not hit " +
11 "anything (not even the html/body), the input event is still captured " +
12 "the iframe's document")
14 document.addEventListener("contextmenu", function(){
15 debug("FAIL context_menu_triggered in main frame");
16 });
18 document.addEventListener("click", function(){
19 debug("FAIL click_triggered in main frame");
20 });
22 if (!window.eventSender) {
23 testFailed('window.eventSender is required for this test.');
26 if (window.testRunner) {
27 testRunner.dumpAsText();
28 testRunner.waitUntilDone();
31 window.addEventListener("message", function(evt) {
32 if (evt.data == "subframe-loaded") {
33 // Tap and left/right click in the iframe that does not hit the body
34 // and the child div but should still be dispatched to the iframe's
35 // document element.
36 debug('Sending a gesture tap');
37 eventSender.gestureTap(100, 50);
38 debug('Sending left click');
39 eventSender.mouseMoveTo(100, 50);
40 eventSender.mouseDown();
41 eventSender.mouseUp();
42 debug('Sending right click');
43 eventSender.mouseDown(2);
44 eventSender.mouseUp(2);
45 if (window.testRunner)
46 testRunner.notifyDone();
49 }, true);
51 </script>