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

Unified Diff: ios/web/web_state/ui/crw_web_controller_unittest.mm

Issue 1806043004: [ios] Refactored dialogs suppression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 9 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
Index: ios/web/web_state/ui/crw_web_controller_unittest.mm
diff --git a/ios/web/web_state/ui/crw_web_controller_unittest.mm b/ios/web/web_state/ui/crw_web_controller_unittest.mm
index 94ae3f254270b477c4c81fd6a607f8bfd7d81dc8..31c33f73817eb401b38f6709bbcc9414fbbf0bec 100644
--- a/ios/web/web_state/ui/crw_web_controller_unittest.mm
+++ b/ios/web/web_state/ui/crw_web_controller_unittest.mm
@@ -550,7 +550,7 @@ TEST_F(CRWWebControllerPageDialogOpenPolicyTest, AllowAlert) {
TEST_F(CRWWebControllerPageDialogOpenPolicyTest, SuppressConfirm) {
[[web_delegate_mock() expect] webControllerDidSuppressDialog:webController_];
[webController_ setPageDialogOpenPolicy:web::DIALOG_POLICY_SUPPRESS];
- EXPECT_NSEQ(@"", EvaluateJavaScriptAsString(@"confirm('test')"));
+ EXPECT_NSEQ(@"false", EvaluateJavaScriptAsString(@"confirm('test')"));
};
// Tests that window.confirm dialog is shown for DIALOG_POLICY_ALLOW and

Powered by Google App Engine
This is Rietveld 408576698