OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/js-test.js"></script> | |
3 <script> | |
4 description("Execute javascript: URL in a replacement document without crashing. "); | |
dcheng
2015/05/22 16:10:48
Nit: mention something about the child having an i
sof
2015/05/22 16:29:32
Yes, directly relevant.
| |
5 self.jsTestIsAsync = true; | |
6 if (window.testRunner) { | |
7 testRunner.dumpAsText(); | |
8 testRunner.waitUntilDone(); | |
9 } | |
10 | |
11 var iframeLoadCount = 0; | |
12 function runTest() { | |
13 // Both the initial load and completion of the javascript: navigation will t rigger a 'load'. | |
14 if (++iframeLoadCount == 2) { | |
15 testPassed("no crash."); | |
16 setTimeout(finishJSTest, 0); | |
17 } | |
18 } | |
19 </script> | |
20 <iframe onload="runTest();" src="resources/javascript-detached-frame-iframe.html "></iframe> | |
OLD | NEW |