Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm

Issue 468913004: Fix naming to conform to Cocoa conventions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One simple change that will restore your faith in humanity! Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/hyperlink_text_view.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm
diff --git a/chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm b/chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm
index 7b02530cf21cfe3837d8281b3c133d01c927abf6..7a4d2162487a3b48e620c0cd7b2cfb001e92f0cb 100644
--- a/chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm
+++ b/chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm
@@ -186,4 +186,12 @@ TEST_F(HyperlinkTextViewTest, TestAddLinkRange) {
EXPECT_NSEQ(linkAttributes, attributes);
}
+TEST_F(HyperlinkTextViewTest, FirstResponderBehavior) {
+ // By default, accept.
+ EXPECT_TRUE([view_ acceptsFirstResponder]);
+
+ [view_ setRefusesFirstResponder:YES];
+ EXPECT_FALSE([view_ acceptsFirstResponder]);
+}
+
} // namespace
« no previous file with comments | « chrome/browser/ui/cocoa/hyperlink_text_view.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698