diff options
Diffstat (limited to 'chromium/content/browser/web_contents/navigation_controller_impl_unittest.cc')
-rw-r--r-- | chromium/content/browser/web_contents/navigation_controller_impl_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/content/browser/web_contents/navigation_controller_impl_unittest.cc b/chromium/content/browser/web_contents/navigation_controller_impl_unittest.cc index 7a0b03b2bf0..df6a47c1b13 100644 --- a/chromium/content/browser/web_contents/navigation_controller_impl_unittest.cc +++ b/chromium/content/browser/web_contents/navigation_controller_impl_unittest.cc @@ -1008,10 +1008,10 @@ TEST_F(NavigationControllerTest, LoadURL_RedirectAbortDoesntShowPendingURL) { ViewHostMsg_DidFailProvisionalLoadWithError(0, // routing_id params)); - // This should not clear the pending entry or notify of a navigation state - // change. + // Because the pending entry is renderer initiated and not visible, we + // clear it when it fails. EXPECT_EQ(-1, controller.GetPendingEntryIndex()); - EXPECT_TRUE(controller.GetPendingEntry()); + EXPECT_FALSE(controller.GetPendingEntry()); EXPECT_EQ(0, controller.GetLastCommittedEntryIndex()); EXPECT_EQ(0, delegate->navigation_state_change_count()); |