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

Unified Diff: chrome/browser/ui/webui/options/options_ui_browsertest.cc

Issue 339023003: Make 'Disconnect from google account' dialog box shows correct message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version 0 Created 6 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 | « chrome/browser/ui/webui/options/manage_profile_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/options_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/options/options_ui_browsertest.cc b/chrome/browser/ui/webui/options/options_ui_browsertest.cc
index 5d8a70ad958d0a11769a3e23e671b4538eaf3a0b..7ee21db719585858e8e33a2be9dc865650c87901 100644
--- a/chrome/browser/ui/webui/options/options_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/options/options_ui_browsertest.cc
@@ -202,8 +202,13 @@ IN_PROC_BROWSER_TEST_F(OptionsUIBrowserTest, MAYBE_VerifyManagedSignout) {
browser()->tab_strip_model()->GetActiveWebContents(),
"var dialog = $('manage-profile-overlay-disconnect-managed');"
"var original_status = dialog.hidden;"
- "$('start-stop-sync').click();"
- "domAutomationController.send(original_status && !dialog.hidden);",
+ "var original = ManageProfileOverlay.showDisconnectManagedProfileDialog;"
+ "var teststub = function(event) {"
+ " original(event);"
+ " domAutomationController.send(original_status && !dialog.hidden);"
+ "};"
+ "ManageProfileOverlay.showDisconnectManagedProfileDialog = teststub;"
+ "$('start-stop-sync').click();",
&result));
EXPECT_TRUE(result);
« no previous file with comments | « chrome/browser/ui/webui/options/manage_profile_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698