blob: 762691e1a19025fa8e44341a0362c72e93ec86a8 [file] [log] [blame]
<html>
<head>
<script src="resources/print.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
document.addEventListener("beforeload", function(event) {
event.preventDefault();
}, true);
function checkObject()
{
var style = getComputedStyle(document.getElementsByTagName("object")[0], null);
if (style.width != "auto" || style.height != "auto")
print("FAIL", "red");
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body onload="checkObject();">
<object data="../../images/resources/test-load.jpg">
<span style="font-family:monospace; color:green">PASS</span>
</object>
<div id="console"></div>
</body>
</html>