Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / window-screen-properties.html
blob567fd197386d889c6a7447ea5f96b5a5aa1f7a3a
1 <script>
2 if (window.testRunner)
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");
7 } else {
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");
14 } else {
15 document.write("FAIL: window.screen.colorDepth is " + depth + ", expected 16, 24, or 32");
17 </script>