Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Document / open-with-pending-load.html
blobacb06bfe94d4f0894003b458eaa1c5c63eab9595
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
5 function runTest() {
6 var result = document.getElementById('result');
8 var text = document.getElementById('iframe').contentDocument.documentElement.outerText;
9 if (text == 'REPLACED')
10 result.innerHTML = 'SUCCESS';
11 else
12 result.innerHTML = 'FAILURE - Got "' + text + '"';
15 </script>
16 <body>
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");
24 oRTE.close();
25 </script>
26 </body>