Title: [247762] trunk/Tools
- Revision
- 247762
- Author
- [email protected]
- Date
- 2019-07-23 17:48:14 -0700 (Tue, 23 Jul 2019)
Log Message
Fix iOS API test after r247759
https://bugs.webkit.org/show_bug.cgi?id=200045
* TestWebKitAPI/Tests/WebKitCocoa/WKProcessPoolConfiguration.mm:
(TEST):
In the iOS simulator, the WebProcess was being started before we were setting the value on the WKProcessPool.
To fix this, set the value on the WKProcessPool before making the WKWebView. This makes the test always pass on Mac and iOS.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (247761 => 247762)
--- trunk/Tools/ChangeLog 2019-07-24 00:24:20 UTC (rev 247761)
+++ trunk/Tools/ChangeLog 2019-07-24 00:48:14 UTC (rev 247762)
@@ -1,3 +1,13 @@
+2019-07-23 Alex Christensen <[email protected]>
+
+ Fix iOS API test after r247759
+ https://bugs.webkit.org/show_bug.cgi?id=200045
+
+ * TestWebKitAPI/Tests/WebKitCocoa/WKProcessPoolConfiguration.mm:
+ (TEST):
+ In the iOS simulator, the WebProcess was being started before we were setting the value on the WKProcessPool.
+ To fix this, set the value on the WKProcessPool before making the WKWebView. This makes the test always pass on Mac and iOS.
+
2019-07-23 Keith Rollin <[email protected]>
Remove rest of NavigatorContentUtils support
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKProcessPoolConfiguration.mm (247761 => 247762)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKProcessPoolConfiguration.mm 2019-07-24 00:24:20 UTC (rev 247761)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKProcessPoolConfiguration.mm 2019-07-24 00:48:14 UTC (rev 247762)
@@ -105,8 +105,9 @@
BOOL result = [contents writeToURL:[tempDir URLByAppendingPathComponent:@"JSC.config"] atomically:YES];
EXPECT_TRUE(result);
- auto webView = adoptNS([[WKWebView alloc] init]);
- [webView configuration].processPool._javaScriptConfigurationDirectory = tempDir;
+ auto configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
+ configuration.get().processPool._javaScriptConfigurationDirectory = tempDir;
+ auto webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100) configuration:configuration.get()]);
[webView loadHTMLString:@"<html>hello</html>" baseURL:[NSURL URLWithString:@"https://webkit.org/"]];
NSString *path = [tempDir URLByAppendingPathComponent:@"Log.txt"].path;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes