Changeset 236958 in webkit


Ignore:
Timestamp:
Oct 8, 2018 8:28:31 PM (6 years ago)
Author:
Wenson Hsieh
Message:

[macOS] API test DragAndDropTests.DropColor is failing on macOS 10.12
https://bugs.webkit.org/show_bug.cgi?id=190386

Reviewed by Ryosuke Niwa.

Unlike macOS 10.13 and 10.14, -[NSColor redColor] is not equivalent to a fully red color in sRGB on macOS 10.12.
Fix the test by dragging and dropping an NSColor that is equivalent to rgb(255, 0, 0) on all relevant versions
of macOS.

  • TestWebKitAPI/Tests/mac/DragAndDropTestsMac.mm:

(TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r236955 r236958  
     12018-10-08  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        [macOS] API test DragAndDropTests.DropColor is failing on macOS 10.12
     4        https://bugs.webkit.org/show_bug.cgi?id=190386
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Unlike macOS 10.13 and 10.14, -[NSColor redColor] is not equivalent to a fully red color in sRGB on macOS 10.12.
     9        Fix the test by dragging and dropping an NSColor that is equivalent to rgb(255, 0, 0) on all relevant versions
     10        of macOS.
     11
     12        * TestWebKitAPI/Tests/mac/DragAndDropTestsMac.mm:
     13        (TEST):
     14
    1152018-10-08  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Tools/TestWebKitAPI/Tests/mac/DragAndDropTestsMac.mm

    r234976 r236958  
    7979    NSPasteboard *pasteboard = [NSPasteboard pasteboardWithUniqueName];
    8080    [pasteboard declareTypes:@[NSColorPboardType] owner:nil];
    81     [[NSColor redColor] writeToPasteboard:pasteboard];
     81    [[NSColor colorWithRed:1 green:0 blue:0 alpha:1] writeToPasteboard:pasteboard];
    8282
    8383    auto simulator = adoptNS([[DragAndDropSimulator alloc] initWithWebViewFrame:NSMakeRect(0, 0, 400, 400)]);
Note: See TracChangeset for help on using the changeset viewer.