Changeset 238157 in webkit
- Timestamp:
- Nov 13, 2018 7:42:44 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r238146 r238157 1 2018-11-13 Chris Dumez <cdumez@apple.com> 2 3 Several Service Worker API tests are failing when enabling PSON 4 https://bugs.webkit.org/show_bug.cgi?id=191619 5 6 Reviewed by Youenn Fablet. 7 8 Update tests to use _webProcessCountIgnoringPrewarmed instead of _webProcessCount so that they are 9 not impacted by process prewarming. 10 11 * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm: 12 1 13 2018-11-13 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm
r237060 r238157 1041 1041 1042 1042 webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:newConfiguration.get()]); 1043 EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCount );1043 EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed); 1044 1044 request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"sw://host/regularPageWithConnection.html"]]; 1045 1045 [webView loadRequest:request]; … … 1048 1048 1049 1049 // Make sure that loading the simple page did not start the service worker process. 1050 EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCount );1050 EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed); 1051 1051 1052 1052 webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:newConfiguration.get()]); 1053 EXPECT_EQ(2u, webView.get().configuration.processPool._webProcessCount );1053 EXPECT_EQ(2u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed); 1054 1054 request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"sw://host/main.html"]]; 1055 1055 [webView loadRequest:request]; … … 1058 1058 1059 1059 // Make sure that loading this page did start the service worker process. 1060 EXPECT_EQ(3u, webView.get().configuration.processPool._webProcessCount );1060 EXPECT_EQ(3u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed); 1061 1061 1062 1062 [[configuration websiteDataStore] removeDataOfTypes:[WKWebsiteDataStore allWebsiteDataTypes] modifiedSince:[NSDate distantPast] completionHandler:^() { … … 1135 1135 1136 1136 webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:newConfiguration.get()]); 1137 EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCount );1137 EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed); 1138 1138 request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"sw://host/regularPageWithConnection.html"]]; 1139 1139 [webView loadRequest:request]; … … 1142 1142 1143 1143 // Make sure that loading the simple page did not start the service worker process. 1144 EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCount );1144 EXPECT_EQ(1u, webView.get().configuration.processPool._webProcessCountIgnoringPrewarmed); 1145 1145 1146 1146 [[configuration websiteDataStore] removeDataOfTypes:[WKWebsiteDataStore allWebsiteDataTypes] modifiedSince:[NSDate distantPast] completionHandler:^() {
Note: See TracChangeset
for help on using the changeset viewer.