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

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

Issue 2074733002: Add public API for handling Javascript alerts and prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace BOOL with bool in unittest. Created 4 years, 6 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_delegate_bridge.mm ('k') | ios/web/web_state/web_state_delegate_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_delegate_bridge_unittest.mm
diff --git a/ios/web/web_state/web_state_delegate_bridge_unittest.mm b/ios/web/web_state/web_state_delegate_bridge_unittest.mm
index 35529ae741cc5ca242e63bee240e10344e72525f..9272d806edc1ee4d41e4f9af9812e0b4dae17724 100644
--- a/ios/web/web_state/web_state_delegate_bridge_unittest.mm
+++ b/ios/web/web_state/web_state_delegate_bridge_unittest.mm
@@ -68,4 +68,11 @@ TEST_F(WebStateDelegateBridgeTest, HandleContextMenu) {
EXPECT_EQ(context_menu_params.location.y, result_params->location.y);
}
+// Tests |GetJavaScriptDialogPresenter| forwarding.
+TEST_F(WebStateDelegateBridgeTest, GetJavaScriptDialogPresenter) {
+ EXPECT_FALSE([delegate_ javaScriptDialogPresenterRequested]);
+ bridge_->GetJavaScriptDialogPresenter(nullptr);
+ EXPECT_TRUE([delegate_ javaScriptDialogPresenterRequested]);
+}
+
} // namespace web
« no previous file with comments | « ios/web/web_state/web_state_delegate_bridge.mm ('k') | ios/web/web_state/web_state_delegate_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698