Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: LayoutTests/fast/events/event-hit-testing-fallback-to-iframe.html

Issue 1289753006: Fallback to root layer if hit-testing does not hit anything in iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove "active" hack for wheel event hit-test & using document.documentElement.scrollTop for scroll… Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <body>
4 <iframe src="resources/body-overflow-iframe.html" height="100px"></iframe>
5 <div id='console'></div>
6 </body>
7
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 hi t " +
11 "anything (not even the html/body), the input event is still capture d " +
12 "the iframe's document")
13
14 document.addEventListener("contextmenu", function(){
15 debug("FAIL context_menu_triggered in main frame");
16 });
17
18 document.addEventListener("click", function(){
19 debug("FAIL click_triggered in main frame");
20 });
21
22 if (!window.eventSender) {
23 testFailed('window.eventSender is required for this test.');
24 }
25
26 if (window.testRunner) {
27 testRunner.dumpAsText();
28 testRunner.waitUntilDone();
29 }
30
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 eventSender.gestureTap(100, 50);
37 eventSender.mouseMoveTo(100, 50);
38 eventSender.mouseDown(1);
39 eventSender.mouseUp(1);
40 eventSender.mouseDown(2);
41 eventSender.mouseUp(2);
42 if (window.testRunner)
43 testRunner.notifyDone();
44 }
45
46 }, true);
47
48 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698