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
+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.
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)];