| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script> | 2 <script> |
| 3 function log(message) { | 3 function log(message) { |
| 4 document.getElementById("log").innerText += message + "\n"; | 4 document.getElementById("log").innerText += message + "\n"; |
| 5 } | 5 } |
| 6 | 6 |
| 7 function verifyResult(message, actualToken, expectedToReload) { | 7 function verifyResult(message, actualToken, expectedToReload) { |
| 8 var success = (expectedToReload != (actualToken == "modified")); | 8 var success = (expectedToReload != (actualToken == "modified")); |
| 9 log((success ? "PASS" : "FAIL") + ": " + message); | 9 log((success ? "PASS" : "FAIL") + ": " + message); |
| 10 } | 10 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 <body onload=test()> | 60 <body onload=test()> |
| 61 <p>This test moves an iframe between two documents 3 times: without plugins, wit
h <embed> tag and then with <object> tag.</p> | 61 <p>This test moves an iframe between two documents 3 times: without plugins, wit
h <embed> tag and then with <object> tag.</p> |
| 62 <p>Only the attempt without plugin elements should succeed. The presence of plug
in elements should prevent the document.adoptNode() method from | 62 <p>Only the attempt without plugin elements should succeed. The presence of plug
in elements should prevent the document.adoptNode() method from |
| 63 triggering live transfer - in which case the iframe will be reloaded.</p> | 63 triggering live transfer - in which case the iframe will be reloaded.</p> |
| 64 <p>Test succeeds if there are 'PASS' messages below and no 'FAIL' messages.</p> | 64 <p>Test succeeds if there are 'PASS' messages below and no 'FAIL' messages.</p> |
| 65 <iframe id=frame1 src="resources/iframe-reparenting-embed-frame1.html"></iframe> | 65 <iframe id=frame1 src="resources/iframe-reparenting-embed-frame1.html"></iframe> |
| 66 <iframe id=frame2 src="resources/iframe-reparenting-frame2.html"></iframe> | 66 <iframe id=frame2 src="resources/iframe-reparenting-frame2.html"></iframe> |
| 67 <pre id=log></pre> | 67 <pre id=log></pre> |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |