Index: chrome/browser/browser_commands_unittest.cc |
diff --git a/chrome/browser/browser_commands_unittest.cc b/chrome/browser/browser_commands_unittest.cc |
index 4a4767af9b7810304bf7a1517841a7af84de6de3..b87eb89558bbb87e4dd45fb7663dbb992480eeeb 100644 |
--- a/chrome/browser/browser_commands_unittest.cc |
+++ b/chrome/browser/browser_commands_unittest.cc |
@@ -293,6 +293,10 @@ TEST_F(BrowserCommandsTest, OnZoomReset) { |
EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_PLUS)); |
EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_NORMAL)); |
EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_MINUS)); |
+ |
+ // Changing the page scale factor will re-enable IDC_ZOOM_NORMAL |
+ zoom_controller->SetPageScaleFactorIsOneForTesting(false); |
+ EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_NORMAL)); |
} |
TEST_F(BrowserCommandsTest, OnZoomLevelChanged) { |