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

Changeset 277429 in webkit


Ignore:
Timestamp:
May 13, 2021, 3:39:13 AM (5 years ago)
Author:
timothy_horton@apple.com
Message:

ResizeReversePaginatedWebView fails on some OS versions on some hardware
https://bugs.webkit.org/show_bug.cgi?id=224699
<rdar://76782199>

Reviewed by Megan Gardner.

  • TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp:

(TestWebKitAPI::didLayout):
This test does *not* care about the specific number of pages that are
generated; the key to the test is the scroll position check.

Since the page-count check in this test has caused lots of trouble
in the past (see the history) just remove it and replace it with a
check that we ended up paginated at all.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r277421 r277429  
     12021-05-13  Tim Horton  <timothy_horton@apple.com>
     2
     3        ResizeReversePaginatedWebView fails on some OS versions on some hardware
     4        https://bugs.webkit.org/show_bug.cgi?id=224699
     5        <rdar://76782199>
     6
     7        Reviewed by Megan Gardner.
     8
     9        * TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp:
     10        (TestWebKitAPI::didLayout):
     11        This test does *not* care about the specific number of pages that are
     12        generated; the key to the test is the scroll position check.
     13
     14        Since the page-count check in this test has caused lots of trouble
     15        in the past (see the history) just remove it and replace it with a
     16        check that we ended up paginated at all.
     17
    1182021-05-12  Simon Fraser  <simon.fraser@apple.com>
    219
  • trunk/Tools/TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp

    r262800 r277429  
    4343static const unsigned pageLength = 100;
    4444static const unsigned pageGap = 100;
    45 static const unsigned expectedPageCount = 49;
    4645
    4746static void didLayout(WKPageRef page, WKPageRenderingProgressEvents milestones, WKTypeRef, const void* clientInfo)
     
    5150
    5251        unsigned pageCount = WKPageGetPageCount(page);
    53         EXPECT_EQ(expectedPageCount, pageCount);
     52        EXPECT_GT(pageCount, 2U);
    5453
    5554        webView->resizeTo((pageLength * pageCount) + (pageGap * (pageCount - 1)), 500);
Note: See TracChangeset for help on using the changeset viewer.