3 testRunner
.dumpAsText();
6 var result
= document
.getElementById('result');
8 var text
= document
.getElementById('iframe').contentDocument
.documentElement
.outerText
;
9 if (text
== 'REPLACED')
10 result
.innerHTML
= 'SUCCESS';
12 result
.innerHTML
= 'FAILURE - Got "' + text
+ '"';
17 <div>This tests that calling document.open on a document that has a pending load correctly cancels the load
</div>
18 <div id=
"result"></div>
19 <script language=
"JavaScript" type=
"text/javascript">
20 document
.write('<iframe id="iframe" src="data:text/html,Should not be seen" onload="runTest()"></iframe>')
21 var oRTE
= frames
[0].document
;
22 oRTE
.open("text/html","replace");
23 oRTE
.write("REPLACED");