3 testRunner
.dumpAsText();
4 depth
= window
.screen
.pixelDepth
;
5 if (depth
== 16 || depth
== 24 || depth
== 32) {
6 document
.write("PASS: window.screen.pixelDepth is either 16, 24, or 32");
8 document
.write("FAIL: window.screen.pixelDepth is " + depth
+ ", expected 16, 24, or 32");
10 document
.write("<br />");
11 depth
= window
.screen
.colorDepth
;
12 if (depth
== 16 || depth
== 24 || depth
== 32) {
13 document
.write("PASS: window.screen.colorDepth is either 16, 24, or 32");
15 document
.write("FAIL: window.screen.colorDepth is " + depth
+ ", expected 16, 24, or 32");