Changeset 238641 in webkit


Ignore:
Timestamp:
Nov 28, 2018 2:12:22 PM (5 years ago)
Author:
achristensen@apple.com
Message:

Fix iOS API test after r238585
https://bugs.webkit.org/show_bug.cgi?id=192022

  • TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:

(TEST):
On iOS, a safe browsing warning over a WKWebView with frame of {0, 0, 0, 0} has a size of {0, 0}, which is fine.
The test was added to catch a bug on Mac platforms, so testing it only on Mac will catch any regression.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r238640 r238641  
     12018-11-28  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix iOS API test after r238585
     4        https://bugs.webkit.org/show_bug.cgi?id=192022
     5
     6        * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
     7        (TEST):
     8        On iOS, a safe browsing warning over a WKWebView with frame of {0, 0, 0, 0} has a size of {0, 0}, which is fine.
     9        The test was added to catch a bug on Mac platforms, so testing it only on Mac will catch any regression.
     10
    1112018-11-28  Aakash Jain  <aakash_jain@apple.com>
    212
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm

    r238585 r238641  
    213213    auto warning = [webView _safeBrowsingWarning];
    214214    EXPECT_EQ(warning.subviews.count, 1ull);
     215#if PLATFORM(MAC)
    215216    EXPECT_GT(warning.subviews.firstObject.subviews[2].frame.size.height, 0);
     217#endif
    216218    checkTitleAndClick(warning.subviews.firstObject.subviews[4], "Show Details");
    217219    EXPECT_EQ(warning.subviews.count, 2ull);
Note: See TracChangeset for help on using the changeset viewer.