18 lines
575 B
HTML
18 lines
575 B
HTML
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
depth = window.screen.pixelDepth;
|
|
if (depth == 16 || depth == 24) {
|
|
document.write("PASS: window.screen.pixelDepth is either 16 or 24");
|
|
} else {
|
|
document.write("FAIL: window.screen.pixelDepth is " + depth + ", expected 16 or 24");
|
|
}
|
|
document.write("<br />");
|
|
depth = window.screen.colorDepth;
|
|
if (depth == 16 || depth == 24) {
|
|
document.write("PASS: window.screen.colorDepth is either 16 or 24");
|
|
} else {
|
|
document.write("FAIL: window.screen.colorDepth is " + depth + ", expected 16 or 24");
|
|
}
|
|
</script>
|