Changeset 68884 in webkit


Ignore:
Timestamp:
Oct 1, 2010 6:30:29 AM (14 years ago)
Author:
Adam Roben
Message:

Make regression tests pass on machines with 16-bit displays

I made these tests require 24-bit displays in r68808 and r68809,
thinking that we didn't have any testers that had 16-bit displays. But
apparently I was wrong; at least one Windows tester has a 16-bit
display.

Fixes <http://webkit.org/b/46980>
fast/media/color-does-not-include-alpha.html failing on Windows

Reviewed by Nikolas Zimmermann.

  • fast/dom/Window/window-screen-properties-expected.txt: Updated

results.

  • fast/dom/Window/window-screen-properties.html: Changed to allow

either 16 or 24 bits.

  • fast/media/color-does-not-include-alpha.html: Changed to allow

either 5 or 8 bits per channel.

Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r68881 r68884  
     12010-10-01  Adam Roben  <aroben@apple.com>
     2
     3        Make regression tests pass on machines with 16-bit displays
     4
     5        I made these tests require 24-bit displays in r68808 and r68809,
     6        thinking that we didn't have any testers that had 16-bit displays. But
     7        apparently I was wrong; at least one Windows tester has a 16-bit
     8        display.
     9
     10        Fixes <http://webkit.org/b/46980>
     11        fast/media/color-does-not-include-alpha.html failing on Windows
     12
     13        Reviewed by Nikolas Zimmermann.
     14
     15        * fast/dom/Window/window-screen-properties-expected.txt: Updated
     16        results.
     17        * fast/dom/Window/window-screen-properties.html: Changed to allow
     18        either 16 or 24 bits.
     19        * fast/media/color-does-not-include-alpha.html: Changed to allow
     20        either 5 or 8 bits per channel.
     21
    1222010-10-01  Csaba Osztrogonác  <ossy@webkit.org>
    223
  • trunk/LayoutTests/fast/dom/Window/window-screen-properties-expected.txt

    r68808 r68884  
    1 PASS: window.screen.pixelDepth is 24
    2 PASS: window.screen.colorDepth is 24
     1PASS: window.screen.pixelDepth is either 16 or 24
     2PASS: window.screen.colorDepth is either 16 or 24
  • trunk/LayoutTests/fast/dom/Window/window-screen-properties.html

    r68808 r68884  
    33    layoutTestController.dumpAsText();
    44depth = window.screen.pixelDepth;
    5 if (depth == 24) {
    6   document.write("PASS: window.screen.pixelDepth is 24");
     5if (depth == 16 || depth == 24) {
     6  document.write("PASS: window.screen.pixelDepth is either 16 or 24");
    77}  else {
    8   document.write("FAIL: window.screen.pixelDepth is " + depth + ", expected 24");
     8  document.write("FAIL: window.screen.pixelDepth is " + depth + ", expected 16 or 24");
    99}
    1010document.write("<br />");
    1111depth = window.screen.colorDepth;
    12 if (depth == 24) {
    13   document.write("PASS: window.screen.colorDepth is 24");
     12if (depth == 16 || depth == 24) {
     13  document.write("PASS: window.screen.colorDepth is either 16 or 24");
    1414}  else {
    15   document.write("FAIL: window.screen.colorDepth is " + depth + ", expected 24");
     15  document.write("FAIL: window.screen.colorDepth is " + depth + ", expected 16 or 24");
    1616}
    1717</script>
  • trunk/LayoutTests/fast/media/color-does-not-include-alpha.html

    r68809 r68884  
    66        background-color: red;
    77    }
    8     @media (color:8) {
     8    @media (color:5), (color:8) {
    99        #test {
    1010            background-color: green;
Note: See TracChangeset for help on using the changeset viewer.