Changeset 235689 in webkit


Ignore:
Timestamp:
Sep 5, 2018 2:15:53 PM (6 years ago)
Author:
Wenson Hsieh
Message:

[macOS] DragAndDropTests.ExposeMultipleURLsInDataTransfer fails on macOS versions prior to Mojave
https://bugs.webkit.org/show_bug.cgi?id=189315

Reviewed by Tim Horton.

Fix the test failure by explicitly enabling custom pasteboard data.

  • TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm:

(TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r235683 r235689  
     12018-09-05  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        [macOS] DragAndDropTests.ExposeMultipleURLsInDataTransfer fails on macOS versions prior to Mojave
     4        https://bugs.webkit.org/show_bug.cgi?id=189315
     5
     6        Reviewed by Tim Horton.
     7
     8        Fix the test failure by explicitly enabling custom pasteboard data.
     9
     10        * TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm:
     11        (TEST):
     12
    1132018-09-05  Woodrow Wang  <woodrow_wang@apple.com>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm

    r235647 r235689  
    2828#import "DragAndDropSimulator.h"
    2929#import "PlatformUtilities.h"
     30#import <WebKit/WKPreferencesPrivate.h>
    3031
    3132#if WK_API_ENABLED && ENABLE(DRAG_SUPPORT)
     
    4849    auto simulator = adoptNS([[DragAndDropSimulator alloc] initWithWebViewFrame:CGRectMake(0, 0, 320, 500)]);
    4950    auto webView = [simulator webView];
     51    WKPreferencesSetCustomPasteboardDataEnabled((WKPreferencesRef)[webView configuration].preferences, true);
    5052    [webView synchronouslyLoadTestPageNamed:@"DataTransfer"];
    5153
Note: See TracChangeset for help on using the changeset viewer.