OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 <script> |
| 7 if (window.testRunner) { |
| 8 testRunner.dumpAsText(); |
| 9 testRunner.dumpChildFramesAsText(); |
| 10 } |
| 11 |
| 12 function loaded() { |
| 13 var iframes = document.getElementsByTagName('iframe'); |
| 14 for (var i = 0; i < iframes.length; ++i) { // < 1; ++i) { // |
| 15 var iframe = iframes[i]; |
| 16 // The iframe uses eventSender to emulate a user navigatation, which require
s absolute coordinates. |
| 17 iframe.contentWindow.postMessage({x: iframe.offsetLeft, y: iframe.offsetTop}
, "*"); |
| 18 } |
| 19 } |
| 20 </script> |
| 21 </head> |
| 22 <body onload="loaded();"> |
| 23 <iframe id="f1" src="resources/feature-policy-vibrate-enabled.html" allow="vibra
te"></iframe> |
| 24 <iframe id="f2" src="http://localhost:8000/feature-policy/feature-policy-vibrate
-enabled.html" allow="vibrate"></iframe> |
| 25 </body> |
| 26 </html> |
OLD | NEW |