blob: 310b29ab585c9ae34bb6029760b7394caa4c61ad [file] [log] [blame]
<script>
function test() {
if (window.testRunner)
testRunner.dumpAsText();
var style = document.defaultView.getComputedStyle(document.getElementById("test"), "");
var result = document.getElementById("result");
if (style.display == "none")
result.appendChild(document.createTextNode("Test succeeded! The value of display is 'none'."));
else
result.appendChild(document.createTextNode("Test failed. The value of display is '" + style.display + "'."));
}
</script>
<body onload="test()">
<div id="test" style="display: none"></div>
<div id="result"></div>
</body>