⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242733 in webkit


Ignore:
Timestamp:
Mar 11, 2019, 1:17:50 PM (7 years ago)
Author:
Chris Dumez
Message:

Regression(r242664) WebKit.WebsitePoliciesDeviceOrientationEventEnabled API test is timing out
https://bugs.webkit.org/show_bug.cgi?id=195561

Reviewed by Youenn Fablet.

Make sure the JS in the test requests for permission to receive device orientation events.

  • TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r242727 r242733  
     12019-03-11  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r242664) WebKit.WebsitePoliciesDeviceOrientationEventEnabled API test is timing out
     4        https://bugs.webkit.org/show_bug.cgi?id=195561
     5
     6        Reviewed by Youenn Fablet.
     7
     8        Make sure the JS in the test requests for permission to receive device orientation events.
     9
     10        * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
     11
    1122019-03-11  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm

    r242371 r242733  
    12941294    finishedNavigation = false;
    12951295
     1296    bool askedForPermission = false;
     1297    [webView evaluateJavaScript:@"DeviceOrientationEvent.requestPermission()" completionHandler: [&] (id result, NSError *error) {
     1298        askedForPermission = true;
     1299    }];
     1300    TestWebKitAPI::Util::run(&askedForPermission);
     1301
    12961302    __block bool didReceiveMessage = false;
    12971303    [webView performAfterReceivingMessage:@"received-device-orientation-event" action:^{
Note: See TracChangeset for help on using the changeset viewer.