blob: 269d6d1edb157f075ce33f9d11bcaa1512582bf8 [file] [log] [blame]
<script>
function runTest() {
if (!window.testRunner)
alert('this test must be run from DumpRenderTree')
testRunner.dumpAsText();
testRunner.setPluginsEnabled(false);
var pluginElement = document.getElementById('testPlugin');
pluginElement.parentNode.removeChild(pluginElement);
document.body.appendChild(pluginElement);
if (pluginElement.contentDocument)
document.getElementById('result').innerText = "FAILURE - object tag has an HTML document!";
else
document.getElementById('result').innerText = "SUCCESS!";
}
</script>
<body onload="runTest()">
<object id="testPlugin" type="application/x-webkit-test-netscape"></object>
<div>This tests that embed and object tags won't load as HTML when plug-ins are disabled (after being enabled first).</div>
<div id="result">FAILURE - test did not run!</div>
</body>