4 testRunner
.dumpAsText();
5 var style
= document
.defaultView
.getComputedStyle(document
.getElementById("test"), "");
6 var result
= document
.getElementById("result");
7 if (style
.display
== "none")
8 result
.appendChild(document
.createTextNode("Test succeeded! The value of display is 'none'."));
10 result
.appendChild(document
.createTextNode("Test failed. The value of display is '" + style
.display
+ "'."));
13 <body onload=
"test()">
14 <div id=
"test" style=
"display: none"></div>
15 <div id=
"result"></div>