Changeset 239356 in webkit


Ignore:
Timestamp:
Dec 18, 2018, 3:02:16 PM (7 years ago)
Author:
achristensen@apple.com
Message:

Fix API test introduced in r239339 on iOS.
https://bugs.webkit.org/show_bug.cgi?id=192675

  • TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:

(TEST):
The iOS implementation of the safe browsing warning is a little different.
It does some element creation when it is added to the window so it knows how big it is.
To test these elements, we need to simulate adding it to the window.
A similar technique is done in other iOS API tests, such as SafeBrowsing.ShowWarningSPI.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r239344 r239356  
     12018-12-18  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix API test introduced in r239339 on iOS.
     4        https://bugs.webkit.org/show_bug.cgi?id=192675
     5
     6        * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
     7        (TEST):
     8        The iOS implementation of the safe browsing warning is a little different.
     9        It does some element creation when it is added to the window so it knows how big it is.
     10        To test these elements, we need to simulate adding it to the window.
     11        A similar technique is done in other iOS API tests, such as SafeBrowsing.ShowWarningSPI.
     12
    1132018-12-18  Jonathan Bedard  <jbedard@apple.com>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm

    r239339 r239356  
    319319        while (![webView _safeBrowsingWarning])
    320320            TestWebKitAPI::Util::spinRunLoop();
     321#if !PLATFORM(MAC)
     322        [[webView _safeBrowsingWarning] didMoveToWindow];
     323#endif
    321324        visitUnsafeSite([webView _safeBrowsingWarning]);
    322325        TestWebKitAPI::Util::run(&done);
     
    327330        while (![webView _safeBrowsingWarning])
    328331            TestWebKitAPI::Util::spinRunLoop();
     332#if !PLATFORM(MAC)
     333        [[webView _safeBrowsingWarning] didMoveToWindow];
     334#endif
    329335        return webView;
    330336    };
Note: See TracChangeset for help on using the changeset viewer.