blob: f117e7b0bacf47fe3e891895c6a41476b2495772 [file] [log] [blame]
<html>
This test passes if it does not crash.
<style>@font-face {
font-family: "Times New Roman";
src: local("Arial")
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var docElement = document.body ? document.body : document.documentElement;
function initTest() {
iframeElement = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
iframeElement.setAttribute("seamless", "");
iframeElement.setAttribute("srcdoc", "This test passes if it does not crash. <iframe seamless sandbox='allow-scripts' srcdoc='This test passes if it does not crash.'");
docElement.appendChild(iframeElement);
textElement = document.createTextNode("This test passes if it does not crash.");
docElement.appendChild(textElement);
setTimeout("crash()", 0);
}
document.addEventListener("DOMContentLoaded", initTest, false);
function crash() {
docElement.appendChild(iframeElement);
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</html>