diff options
-rw-r--r-- | chrome/browser/page_menu_model_unittest.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/page_menu_model_unittest.cc b/chrome/browser/page_menu_model_unittest.cc index dbac3aa..9c38b0b 100644 --- a/chrome/browser/page_menu_model_unittest.cc +++ b/chrome/browser/page_menu_model_unittest.cc @@ -27,8 +27,9 @@ TEST_F(PageMenuModelTest, Basics) { // delegate is internal, it doesn't use the one we pass in. model.ActivatedAt(0); EXPECT_TRUE(model.IsEnabledAt(0)); - model.ActivatedAt(3); - EXPECT_TRUE(model.IsEnabledAt(3)); + // Make sure to use the index that is not separator in all configurations. + model.ActivatedAt(2); + EXPECT_TRUE(model.IsEnabledAt(2)); EXPECT_EQ(delegate_.execute_count_, 2); EXPECT_EQ(delegate_.enable_count_, 2); |