Add explicit colordepth test for bug 414720 - Enable 24-bit display on Windows test boxes.

This commit is contained in:
dolske@mozilla.com 2008-02-25 21:30:36 -08:00
Родитель 02f9294592
Коммит 27845835bf
2 изменённых файлов: 17 добавлений и 3 удалений

Просмотреть файл

@ -0,0 +1,14 @@
<script>
/*
* Almost all of the image decoding reftests require the display to be in
* 24-bit color mode, or else the rendered images will have subtle color
* variations and will fail. The Windows test boxes have a tendancy to flip to
* 16-bit color mode (see bug 414720), so this test will explicit check the
* color depth to make it more obvious when that happens.
*/
var colorDepth = window.screen.colorDepth;
if (colorDepth != 24)
document.write("ERROR: color depth is " + colorDepth + ".");
</script>

Просмотреть файл

@ -1,11 +1,11 @@
#
# Check for 24-bit color mode (bug 414720)
== colordepth.html about:blank
# "PngSuite, the official set of PNG test images"
# Images by Willem van Schaik
#
# http://www.schaik.com/pngsuite/pngsuite.html
# http://www.libpng.org/pub/png/pngsuite.html
#
include pngsuite-basic-n/reftest.list
include pngsuite-basic-i/reftest.list
include pngsuite-ancillary/reftest.list