OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
jochen (gone - plz use gerrit)
2014/02/12 09:27:19
doctype missing
| |
2 <head> | |
3 <script src="resources/cross-frame-access.js"></script> | |
4 <script> | |
5 if (window.testRunner) { | |
6 testRunner.dumpAsText(); | |
7 testRunner.dumpChildFramesAsText(); | |
8 testRunner.waitUntilDone(); | |
9 } | |
10 | |
11 receiver = function(e) { | |
12 if (e.data == "LOADED") | |
13 deleteTest(); | |
14 }; | |
15 | |
16 var targetWindow; | |
17 addEventListener('message', function () { | |
18 targetWindow = document.querySelector('iframe').contentWindow; | |
19 shouldThrowException('targetWindow.dispatchEvent(new CustomEvent("cl ick"));'); | |
20 shouldThrowException('window.dispatchEvent.call(targetWindow, new Cu stomEvent("click"));'); | |
21 | |
22 if (window.testRunner) | |
23 testRunner.notifyDone(); | |
24 }); | |
25 | |
26 </script> | |
27 </head> | |
28 <body> | |
29 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for -delete-test.html"></iframe> | |
30 <pre id="console"></pre> | |
31 </body> | |
32 </html> | |
OLD | NEW |