Index: chrome/browser/extensions/page_action_controller_unittest.cc |
diff --git a/chrome/browser/extensions/page_action_controller_unittest.cc b/chrome/browser/extensions/page_action_controller_unittest.cc |
index 924f93fb7224fe63cdc1c8db8278237f5ca774e5..bcb16c577aac3b680262dcbe623bd338caf4086a 100644 |
--- a/chrome/browser/extensions/page_action_controller_unittest.cc |
+++ b/chrome/browser/extensions/page_action_controller_unittest.cc |
@@ -78,6 +78,13 @@ TEST_F(PageActionControllerTest, NavigationClearsState) { |
EXPECT_EQ(extension->GetResourceURL("popup.html"), |
extension->page_action()->GetPopupUrl(tab_id())); |
+ // Within-page navigation should keep the settings. |
+ NavigateAndCommit(GURL("http://www.google.com/#hash")); |
+ |
+ EXPECT_EQ("Goodbye", extension->page_action()->GetTitle(tab_id())); |
+ EXPECT_EQ(extension->GetResourceURL("popup.html"), |
+ extension->page_action()->GetPopupUrl(tab_id())); |
+ |
// Should discard the settings, and go back to the defaults. |
NavigateAndCommit(GURL("http://www.yahoo.com")); |