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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm

Issue 58913002: [rAc OSX] Ensure that the "Save in Chrome?" tooltip is only visible when the checkbox is. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/autofill/autofill_main_container.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/autofill/autofill_main_container_unittest.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm b/chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm
index 775e7a1f4d65203dac6ba8bb47f94023b5fa8d00..4c0171648ed6e1e002a621158c2b8d4f54533975 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm
@@ -111,9 +111,13 @@ TEST_F(AutofillMainContainerTest, SaveInChromeCheckboxVisibility) {
RebuildView();
NSButton* checkbox = [container_ saveInChromeCheckboxForTesting];
+ NSImageView* tooltip = [container_ saveInChromeTooltipForTesting];
ASSERT_TRUE(checkbox);
+ ASSERT_TRUE(tooltip);
EXPECT_TRUE([checkbox isHidden]);
+ EXPECT_TRUE([tooltip isHidden]);
[container_ modelChanged];
EXPECT_FALSE([checkbox isHidden]);
+ EXPECT_FALSE([tooltip isHidden]);
}
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/autofill_main_container.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698