Changeset 156299 in webkit
- Timestamp:
- Sep 23, 2013, 3:07:49 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r156294 r156299 1 2013-09-23 Benjamin Poulain <benjamin@webkit.org> 2 3 Delete TestWebKitAPI domain or some keys before running TestWebKitAPI 4 https://bugs.webkit.org/show_bug.cgi?id=121715 & <rdar://problem/14269434> 5 6 Reviewed by Alexey Proskuryakov. 7 8 Previously, initalizing a WebPreference would change the cache model 9 to WebCacheModelDocumentBrowser. That behavior was due to a stale 10 preference file on disk. 11 12 This patch fixes the tests by resetting the default, and using the proper 13 default values after initializing WebPreference. 14 15 * TestWebKitAPI/Tests/mac/SetAndUpdateCacheModel.mm: 16 (TestWebKitAPI::TEST): Use the proper initial value, unrelated 17 to the previous runs. 18 19 * TestWebKitAPI/Tests/mac/SetAndUpdateCacheModel.mm: 20 (TestWebKitAPI::TEST): This test needs b/f cache to be enabled, so change 21 cache model to the one required. 22 23 * TestWebKitAPI/ios/mainIOS.mm: 24 (main): Reset the preferences before testing. 25 * TestWebKitAPI/mac/mainMac.mm: 26 (main): Ditto. 27 28 2013-09-23 Benjamin Poulain <benjamin@webkit.org> 29 30 Delete TestWebKitAPI domain or some keys before running TestWebKitAPI 31 https://bugs.webkit.org/show_bug.cgi?id=121715 & <rdar://problem/14269434> 32 33 Reviewed by Alexey Proskuryakov. 34 35 Previously, initalizing a WebPreference would change the cache model 36 to WebCacheModelDocumentBrowser. That behavior was due to a stale 37 preference file on disk. 38 39 This patch fixes the tests by resetting the default, and using the proper 40 default values after initializing WebPreference. 41 42 * TestWebKitAPI/Tests/mac/SetAndUpdateCacheModel.mm: 43 (TestWebKitAPI::TEST): Use the proper initial value, unrelated 44 to the previous runs. 45 46 * TestWebKitAPI/ios/mainIOS.mm: 47 (main): Reset the preferences before testing. 48 * TestWebKitAPI/mac/mainMac.mm: 49 (main): Ditto. 50 1 51 2013-09-23 Anders Carlsson <andersca@apple.com> 2 52 -
trunk/Tools/TestWebKitAPI/Tests/mac/SetAndUpdateCacheModel.mm
r149716 r156299 42 42 RetainPtr<WebView> webView = adoptNS([[WebView alloc] initWithFrame:NSMakeRect(0, 0, 120, 200) frameName:nil groupName:nil]); 43 43 44 EXPECT_EQ((int)WebCacheModelDocument Browser, (int)[WebView _cacheModel]);44 EXPECT_EQ((int)WebCacheModelDocumentViewer, (int)[WebView _cacheModel]); 45 45 } 46 46 … … 50 50 51 51 WebPreferences *standardPreferences = [WebPreferences standardPreferences]; 52 EXPECT_EQ((int)WebCacheModelDocument Browser, (int)[WebView _cacheModel]);52 EXPECT_EQ((int)WebCacheModelDocumentViewer, (int)[WebView _cacheModel]); 53 53 54 54 [standardPreferences setCacheModel:WebCacheModelPrimaryWebBrowser]; … … 68 68 69 69 // 1) The customPreferences is not set on a view. 70 EXPECT_EQ((int)WebCacheModelDocument Browser, (int)[WebView _cacheModel]);70 EXPECT_EQ((int)WebCacheModelDocumentViewer, (int)[WebView _cacheModel]); 71 71 72 72 [standardPreferences setCacheModel:WebCacheModelPrimaryWebBrowser]; -
trunk/Tools/TestWebKitAPI/Tests/mac/WebViewDidCreateJavaScriptContext.mm
r143637 r156299 249 249 RetainPtr<WebView> webView = adoptNS([[WebView alloc] initWithFrame:NSMakeRect(0, 0, 120, 200) frameName:nil groupName:nil]); 250 250 RetainPtr<DidCreateJavaScriptContextFrameLoadDelegate> frameLoadDelegate = adoptNS([[DidCreateJavaScriptContextFrameLoadDelegate alloc] init]); 251 [[webView.get() preferences] setCacheModel:WebCacheModelDocumentBrowser]; 251 252 252 253 webView.get().frameLoadDelegate = frameLoadDelegate.get(); -
trunk/Tools/TestWebKitAPI/ios/mainIOS.mm
r142381 r156299 31 31 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 32 32 33 [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:@"TestWebKitAPI"]; 33 34 bool passed = TestWebKitAPI::TestsController::shared().run(argc, argv); 34 35 -
trunk/Tools/TestWebKitAPI/mac/mainMac.mm
r142381 r156299 31 31 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 32 32 33 [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:@"TestWebKitAPI"]; 33 34 [NSApplication sharedApplication]; 34 35
Note:
See TracChangeset
for help on using the changeset viewer.