OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <script src="../resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <iframe></iframe> |
| 7 <script> |
| 8 |
| 9 var iframe = document.querySelector('iframe'); |
| 10 |
| 11 async_test(t => { |
| 12 iframe.onload = t.step_func(() => { |
| 13 iframe.contentWindow.postMessage('create', '*'); |
| 14 }); |
| 15 |
| 16 window.addEventListener('message', t.step_func_done(e => { |
| 17 assert_equals(e.data, 'success'); |
| 18 })); |
| 19 |
| 20 // Navigate the iframe |
| 21 iframe.src = 'resources/iframe-sandbox.html'; |
| 22 }, "Test that creating PresentationRequest succeeds when the iframe is not sandb
oxed."); |
| 23 |
| 24 </script> |
| 25 </body> |
| 26 </html> |
OLD | NEW |