| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 This test passes if it does not crash. | |
| 3 <style>@font-face { | |
| 4 font-family: "Times New Roman"; | |
| 5 src: local("Arial") | |
| 6 </style> | |
| 7 <script> | |
| 8 if (window.testRunner) { | |
| 9 testRunner.dumpAsText(); | |
| 10 testRunner.waitUntilDone(); | |
| 11 } | |
| 12 var docElement = document.body ? document.body : document.documentElement; | |
| 13 | |
| 14 function initTest() { | |
| 15 iframeElement = document.createElementNS("http://www.w3.org/1999/xhtml", "
iframe"); | |
| 16 iframeElement.setAttribute("seamless", ""); | |
| 17 iframeElement.setAttribute("srcdoc", "This test passes if it does not cras
h. <iframe seamless sandbox='allow-scripts' srcdoc='This test passes if it does
not crash.'"); | |
| 18 docElement.appendChild(iframeElement); | |
| 19 | |
| 20 textElement = document.createTextNode("This test passes if it does not cra
sh."); | |
| 21 docElement.appendChild(textElement); | |
| 22 setTimeout("crash()", 0); | |
| 23 } | |
| 24 | |
| 25 document.addEventListener("DOMContentLoaded", initTest, false); | |
| 26 | |
| 27 function crash() { | |
| 28 docElement.appendChild(iframeElement); | |
| 29 if (window.testRunner) | |
| 30 testRunner.notifyDone(); | |
| 31 } | |
| 32 </script> | |
| 33 </html> | |
| OLD | NEW |