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 | |
7 <iframe sandbox='allow-scripts allow-same-origin'></iframe> | |
8 | |
9 <script> | |
10 | |
11 async_test(function(t) { | |
12 window.onmessage = t.step_func_done(function(e) { | |
13 e.data.forEach(function(result) { | |
14 assert_equals(result.status, 'failure', result.test); | |
15 assert_equals(result.name, 'SecurityError', result.test); | |
16 }); | |
17 }); | |
18 | |
19 document.querySelector('iframe').src = 'resources/embedded-smoke-tests.html'; | |
20 }, 'Test that Presentation API is blocked inside a sandboxed iframe without "all
ow-presentation".'); | |
21 | |
22 </script> | |
23 </body> | |
24 </html> | |
OLD | NEW |