Only call -typingAttributes on WebViews, not WebHTMLViews
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jan 2012 15:09:33 +0000 (15:09 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jan 2012 15:09:33 +0000 (15:09 +0000)
Looks like this case was just missed in r105908.

Fixes <http://webkit.org/b/77432> REGRESSION (r105908): WebKit1.InspectorBarTest is crashing

Reviewed by Antti Koivisto.

* TestWebKitAPI/Tests/mac/InspectorBar.mm:
(TestWebKitAPI::TEST): Call -typingAttributes on the WebView, just like we do 2 lines
earlier.

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

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/mac/InspectorBar.mm

index d7a9097..133a262 100644 (file)
@@ -1,3 +1,17 @@
+2012-01-31  Adam Roben  <aroben@apple.com>
+
+        Only call -typingAttributes on WebViews, not WebHTMLViews
+
+        Looks like this case was just missed in r105908.
+
+        Fixes <http://webkit.org/b/77432> REGRESSION (r105908): WebKit1.InspectorBarTest is crashing
+
+        Reviewed by Antti Koivisto.
+
+        * TestWebKitAPI/Tests/mac/InspectorBar.mm:
+        (TestWebKitAPI::TEST): Call -typingAttributes on the WebView, just like we do 2 lines
+        earlier.
+
 2012-01-31  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
 
         [Qt] MiniBrowser: Show touch mocking indicators only when Ctrl is held down.
index bf489a2..0a51e2f 100644 (file)
@@ -66,7 +66,7 @@ TEST(WebKit1, InspectorBarTest)
     EXPECT_TRUE([webView.get() respondsToSelector:@selector(typingAttributes)]);
     NSDictionary *attributes = [(id)webView.get() typingAttributes];
     [(id)[[[webView.get() mainFrame] frameView] documentView] doCommandBySelector:@selector(bold:)];
-    EXPECT_FALSE([attributes isEqual:[(id)[[[webView.get() mainFrame] frameView] documentView] typingAttributes]]);
+    EXPECT_FALSE([attributes isEqual:[(id)webView.get() typingAttributes]]);
     
     [webView.get() selectAll:nil];
     NSAttributedString *attrString = [(NSView <NSTextInput> *)[[[webView.get() mainFrame] frameView] documentView] attributedSubstringFromRange:NSMakeRange(0, 5)];