Changeset 236958 in webkit
- Timestamp:
- Oct 8, 2018 8:28:31 PM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r236955 r236958 1 2018-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 1 15 2018-10-08 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Tools/TestWebKitAPI/Tests/mac/DragAndDropTestsMac.mm
r234976 r236958 79 79 NSPasteboard *pasteboard = [NSPasteboard pasteboardWithUniqueName]; 80 80 [pasteboard declareTypes:@[NSColorPboardType] owner:nil]; 81 [[NSColor redColor] writeToPasteboard:pasteboard];81 [[NSColor colorWithRed:1 green:0 blue:0 alpha:1] writeToPasteboard:pasteboard]; 82 82 83 83 auto simulator = adoptNS([[DragAndDropSimulator alloc] initWithWebViewFrame:NSMakeRect(0, 0, 400, 400)]);
Note: See TracChangeset
for help on using the changeset viewer.