Changeset 260451 in webkit


Ignore:
Timestamp:
Apr 21, 2020 1:49:32 PM (4 years ago)
Author:
Kate Cheney
Message:

Move WebKit.WebViewCategory test to InAppBrowserPrivacy.mm
https://bugs.webkit.org/show_bug.cgi?id=210811
<rdar://problem/60972505>

Reviewed by Alexey Proskuryakov.

This test was added before InAppBrowserPrivacy.mm existed. It should
be moved here so it has access to all setup/cleanup needed by these
tests.

  • TestWebKitAPI/Tests/WebKitCocoa/Configuration.mm:
  • TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r260449 r260451  
     12020-04-21  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        Move WebKit.WebViewCategory test to InAppBrowserPrivacy.mm
     4        https://bugs.webkit.org/show_bug.cgi?id=210811
     5        <rdar://problem/60972505>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        This test was added before InAppBrowserPrivacy.mm existed. It should
     10        be moved here so it has access to all setup/cleanup needed by these
     11        tests.
     12
     13        * TestWebKitAPI/Tests/WebKitCocoa/Configuration.mm:
     14        * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm:
     15
    1162020-04-21  Daniel Bates  <dabates@apple.com>
    217
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/Configuration.mm

    r256042 r260451  
    6060}
    6161
    62 TEST(WebKit, WebViewCategory)
    63 {
    64     auto configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
    65     EXPECT_EQ([configuration _webViewCategory], _WKWebViewCategoryAppBoundDomain);
    66 
    67     [configuration _setWebViewCategory:_WKWebViewCategoryInAppBrowser];
    68     EXPECT_EQ([configuration _webViewCategory], _WKWebViewCategoryInAppBrowser);
    69 
    70     [configuration _setWebViewCategory:_WKWebViewCategoryWebBrowser];
    71     EXPECT_EQ([configuration _webViewCategory], _WKWebViewCategoryWebBrowser);
    72 
    73     [configuration _setWebViewCategory:_WKWebViewCategoryAppBoundDomain];
    74     EXPECT_EQ([configuration _webViewCategory], _WKWebViewCategoryAppBoundDomain);
    75 }
    76 
    7762#endif
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm

    r260408 r260451  
    10291029}
    10301030
     1031TEST(InAppBrowserPrivacy, WebViewCategory)
     1032{
     1033    initializeInAppBrowserPrivacyTestSettings();
     1034
     1035    auto configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
     1036    EXPECT_EQ([configuration _webViewCategory], _WKWebViewCategoryAppBoundDomain);
     1037
     1038    [configuration _setWebViewCategory:_WKWebViewCategoryInAppBrowser];
     1039    EXPECT_EQ([configuration _webViewCategory], _WKWebViewCategoryInAppBrowser);
     1040
     1041    [configuration _setWebViewCategory:_WKWebViewCategoryWebBrowser];
     1042    EXPECT_EQ([configuration _webViewCategory], _WKWebViewCategoryWebBrowser);
     1043
     1044    [configuration _setWebViewCategory:_WKWebViewCategoryAppBoundDomain];
     1045    EXPECT_EQ([configuration _webViewCategory], _WKWebViewCategoryAppBoundDomain);
     1046
     1047    cleanUpInAppBrowserPrivacyTestSettings();
     1048}
     1049
    10311050#endif // USE(APPLE_INTERNAL_SDK)
    10321051
Note: See TracChangeset for help on using the changeset viewer.