Reviewed by Sam.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2007 01:22:21 +0000 (01:22 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2007 01:22:21 +0000 (01:22 +0000)
        Reset the authorAndUserStylesEnabled preference
        back to YES for each test. Fixes the broken tests.

        * DumpRenderTree/mac/DumpRenderTree.mm:
        (resetWebViewToConsistentStateBeforeTesting):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28094 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm

index 6b032c86dc121bf81987582b8a34e58dca995471..3cdccc292023a474d518379df30d5c40d1a566cd 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-27  Timothy Hatcher  <timothy@apple.com>
+
+        Reviewed by Sam.
+
+        Reset the authorAndUserStylesEnabled preference
+        back to YES for each test. Fixes the broken tests.
+
+        * DumpRenderTree/mac/DumpRenderTree.mm:
+        (resetWebViewToConsistentStateBeforeTesting):
+
 2007-11-27  Kevin McCullough  <kmccullough@apple.com>
 
         Reviewed by Adam.
index d81f93462b45e2bb56b91025eb40f50c57eec4f0..0bd90447807f9d9341db7a60f4b1c3dbcd6b2ef6 100644 (file)
@@ -788,12 +788,17 @@ static CFURLRef createCFURLFromPathOrURL(CFStringRef pathOrURLString)
 
 static void resetWebViewToConsistentStateBeforeTesting()
 {
-    [(EditingDelegate *)[[mainFrame webView] editingDelegate] setAcceptsEditing:YES];
-    [[mainFrame webView] makeTextStandardSize:nil];
-    [[mainFrame webView] setTabKeyCyclesThroughElements: YES];
-    [[mainFrame webView] setPolicyDelegate:nil];
-    [[mainFrame webView] _setDashboardBehavior:WebDashboardBehaviorUseBackwardCompatibilityMode to:NO];
-    [[[mainFrame webView] preferences] setPrivateBrowsingEnabled:NO];
+    WebView *webView = [mainFrame webView];
+    [(EditingDelegate *)[webView editingDelegate] setAcceptsEditing:YES];
+    [webView makeTextStandardSize:nil];
+    [webView setTabKeyCyclesThroughElements: YES];
+    [webView setPolicyDelegate:nil];
+    [webView _setDashboardBehavior:WebDashboardBehaviorUseBackwardCompatibilityMode to:NO];
+
+    WebPreferences *preferences = [webView preferences];
+    [preferences setPrivateBrowsingEnabled:NO];
+    [preferences setAuthorAndUserStylesEnabled:YES];
+
     [WebView _setUsesTestModeFocusRingColor:YES];
 }