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

Changeset 270592 in webkit


Ignore:
Timestamp:
Dec 9, 2020, 11:53:41 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Make PDFHUD.MoveIFrame API test more robust
https://bugs.webkit.org/show_bug.cgi?id=219667
<rdar://problem/68639688>

Patch by Alex Christensen <achristensen@webkit.org> on 2020-12-09
Reviewed by Geoffrey Garen.

This test would time out if the place where the TestWKWebView is obscured, which happens frequently on the bots.
Make the test pass if this is the case. It's unfortunate to skip it often, but it still runs sometimes,
and I think this is better than having no test.

  • TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:

(TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r270588 r270592  
     12020-12-09  Alex Christensen  <achristensen@webkit.org>
     2
     3        Make PDFHUD.MoveIFrame API test more robust
     4        https://bugs.webkit.org/show_bug.cgi?id=219667
     5        <rdar://problem/68639688>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        This test would time out if the place where the TestWKWebView is obscured, which happens frequently on the bots.
     10        Make the test pass if this is the case.  It's unfortunate to skip it often, but it still runs sometimes,
     11        and I think this is better than having no test.
     12
     13        * TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:
     14        (TEST):
     15
    1162020-12-09  Jonathan Bedard  <jbedard@apple.com>
    217
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm

    r270510 r270592  
    215215    EXPECT_EQ(webView._pdfHUDs.count, 0u);
    216216    [webView _test_waitForDidFinishNavigation];
     217
     218    // If the TestWKWebView is not visible, visibilityDidChange will be called with false, and there will be no HUD.
     219    if (!webView._pdfHUDs.count)
     220        return;
     221
    217222    EXPECT_EQ(webView._pdfHUDs.count, 1u);
    218223    checkFrame(webView._pdfHUDs.anyObject.frame, 10, 28, 300, 150);
Note: See TracChangeset for help on using the changeset viewer.