Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1283)

Unified Diff: ios/web/web_state/web_state_observer_bridge_unittest.mm

Issue 2710913006: Removed -[CRWWebDelegate webController:titleDidChange:]. (Closed)
Patch Set: Rebased Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/web_state/web_state_observer_bridge.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_observer_bridge_unittest.mm
diff --git a/ios/web/web_state/web_state_observer_bridge_unittest.mm b/ios/web/web_state/web_state_observer_bridge_unittest.mm
index 8d626ef75686debcfcb7bc8ef52e6442b962dbf9..e6276754bfebb0d2b4ec6127187b3e50e9ce35f3 100644
--- a/ios/web/web_state/web_state_observer_bridge_unittest.mm
+++ b/ios/web/web_state/web_state_observer_bridge_unittest.mm
@@ -101,6 +101,15 @@ TEST_F(WebStateObserverBridgeTest, LoadProgressChanged) {
EXPECT_EQ(kTestLoadProgress, [observer_ changeLoadingProgressInfo]->progress);
}
+// Tests |webStateDidChangeTitle:| forwarding.
+TEST_F(WebStateObserverBridgeTest, TitleWasSet) {
+ ASSERT_FALSE([observer_ titleWasSetInfo]);
+
+ bridge_->TitleWasSet();
+ ASSERT_TRUE([observer_ titleWasSetInfo]);
+ EXPECT_EQ(&test_web_state_, [observer_ titleWasSetInfo]->web_state);
+}
+
// Tests |webState:didSubmitDocumentWithFormNamed:userInitiated:| forwarding.
TEST_F(WebStateObserverBridgeTest, DocumentSubmitted) {
ASSERT_FALSE([observer_ submitDocumentInfo]);
« no previous file with comments | « ios/web/web_state/web_state_observer_bridge.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698