Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / gesture / context-menu-on-two-finger-tap-iframe.html
blobdfcf5414add846eb36593a5cf381220a5429b672
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../../js/resources/js-test-style.css">
5 <script src="../../../../resources/js-test.js"></script>
6 <style>
7 #frame {
8 width: 200px;
9 height: 200px;
10 position: relative;
12 </style>
13 </head>
14 <body>
15 <iframe id="frame" src="resources/context-menu-on-two-finger-tap-iframe-inner.html"></iframe>
16 <p id="description"></p>
17 <div id="console"></div>
18 </body>
19 <script>
20 if (window.testRunner)
21 testRunner.dumpAsText();
23 function recordContextMenu(event)
25 debug("PASS contextmenu in iframe");
26 finishJSTest();
29 function runTest()
31 description('This test checks that the context menu is sent to the iframe on a two finger tap gesture.');
33 if (!window.eventSender || !eventSender.gestureTwoFingerTap) {
34 debug("gestureTwoFingerTap not implemented by this platform");
35 return;
38 eventSender.gestureTwoFingerTap(100, 100);
40 </script>
41 </html>