Index: ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm |
diff --git a/ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm b/ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm |
index 5b3eb4f313dd1cec5a721b0da7c627aac0935673..61c44093c0ca5c99fed4017853655b0e83707f0a 100644 |
--- a/ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm |
+++ b/ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm |
@@ -31,22 +31,14 @@ |
// navigation_1 is the only navigation and it is the latest. |
[states_ setState:WKNavigationState::REQUESTED forNavigation:navigation1_]; |
EXPECT_EQ(navigation1_, [states_ lastAddedNavigation]); |
- EXPECT_EQ(WKNavigationState::REQUESTED, [states_ lastAddedNavigationState]); |
// navigation_2 is added later and hence the latest. |
[states_ setState:WKNavigationState::REQUESTED forNavigation:navigation2_]; |
EXPECT_EQ(navigation2_, [states_ lastAddedNavigation]); |
- EXPECT_EQ(WKNavigationState::REQUESTED, [states_ lastAddedNavigationState]); |
// Updating state for existing navigation does not make it the latest. |
[states_ setState:WKNavigationState::STARTED forNavigation:navigation1_]; |
EXPECT_EQ(navigation2_, [states_ lastAddedNavigation]); |
- EXPECT_EQ(WKNavigationState::REQUESTED, [states_ lastAddedNavigationState]); |
- |
- // navigation_2 is still the latest. |
- [states_ setState:WKNavigationState::STARTED forNavigation:navigation2_]; |
- EXPECT_EQ(navigation2_, [states_ lastAddedNavigation]); |
- EXPECT_EQ(WKNavigationState::STARTED, [states_ lastAddedNavigationState]); |
} |
} // namespace web |