Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <script> |
michael@0 | 2 | /* |
michael@0 | 3 | * Almost all of the image decoding reftests require the display to be in |
michael@0 | 4 | * 24-bit color mode, or else the rendered images will have subtle color |
michael@0 | 5 | * variations and will fail. |
michael@0 | 6 | * The Windows test boxes used to have a tendency to flip to 16-bit color mode, |
michael@0 | 7 | * so this test will explicitly check the color depth to make it more obvious |
michael@0 | 8 | * when the requirement is not met. (See bug 414720.) |
michael@0 | 9 | * 24-bit is only a minimum, allow higher values too. (See bug 458847.) |
michael@0 | 10 | */ |
michael@0 | 11 | |
michael@0 | 12 | var colorDepth = window.screen.colorDepth; |
michael@0 | 13 | |
michael@0 | 14 | if (colorDepth < 24) |
michael@0 | 15 | document.write("ERROR: color depth is only " + colorDepth + "."); |
michael@0 | 16 | </script> |