Changeset 260451 in webkit
- Timestamp:
- Apr 21, 2020 1:49:32 PM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r260449 r260451 1 2020-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 1 16 2020-04-21 Daniel Bates <dabates@apple.com> 2 17 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/Configuration.mm
r256042 r260451 60 60 } 61 61 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 77 62 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm
r260408 r260451 1029 1029 } 1030 1030 1031 TEST(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 1031 1050 #endif // USE(APPLE_INTERNAL_SDK) 1032 1051
Note: See TracChangeset
for help on using the changeset viewer.