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

Side by Side Diff: chrome/browser/ui/webui/webui_webview_browsertest.cc

Issue 1179433002: signin: Abort previous 'channelConnected' handling on retry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/post_message_channel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/macros.h" 5 #include "base/macros.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/common/chrome_paths.h" 9 #include "chrome/common/chrome_paths.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 IN_PROC_BROWSER_TEST_F(WebUIWebViewBrowserTest, AddAndRemoveContentScripts) { 94 IN_PROC_BROWSER_TEST_F(WebUIWebViewBrowserTest, AddAndRemoveContentScripts) {
95 ui_test_utils::NavigateToURL(browser(), GetWebViewEnabledWebUIURL()); 95 ui_test_utils::NavigateToURL(browser(), GetWebViewEnabledWebUIURL());
96 96
97 ASSERT_TRUE(WebUIBrowserTest::RunJavascriptAsyncTest( 97 ASSERT_TRUE(WebUIBrowserTest::RunJavascriptAsyncTest(
98 "testAddAndRemoveContentScripts", 98 "testAddAndRemoveContentScripts",
99 new base::StringValue(GetTestUrl("empty.html").spec()))); 99 new base::StringValue(GetTestUrl("empty.html").spec())));
100 } 100 }
101 101
102 // Flaky under MemorySanitizer: https://crbug.com/497977
103 #if defined(MEMORY_SANITIZER)
104 #define MAYBE_AddContentScriptsWithNewWindowAPI DISABLED_AddContentScriptsWithNe wWindowAPI
105 #else
106 #define MAYBE_AddContentScriptsWithNewWindowAPI AddContentScriptsWithNewWindowAP I
107 #endif
108 IN_PROC_BROWSER_TEST_F(WebUIWebViewBrowserTest, 102 IN_PROC_BROWSER_TEST_F(WebUIWebViewBrowserTest,
109 MAYBE_AddContentScriptsWithNewWindowAPI) { 103 AddContentScriptsWithNewWindowAPI) {
110 ui_test_utils::NavigateToURL(browser(), GetWebViewEnabledWebUIURL()); 104 ui_test_utils::NavigateToURL(browser(), GetWebViewEnabledWebUIURL());
111 105
112 ASSERT_TRUE(WebUIBrowserTest::RunJavascriptAsyncTest( 106 ASSERT_TRUE(WebUIBrowserTest::RunJavascriptAsyncTest(
113 "testAddContentScriptsWithNewWindowAPI", 107 "testAddContentScriptsWithNewWindowAPI",
114 new base::StringValue(GetTestUrl("guest_from_opener.html").spec()))); 108 new base::StringValue(GetTestUrl("guest_from_opener.html").spec())));
115 } 109 }
116 110
117 IN_PROC_BROWSER_TEST_F(WebUIWebViewBrowserTest, 111 IN_PROC_BROWSER_TEST_F(WebUIWebViewBrowserTest,
118 ContentScriptIsInjectedAfterTerminateAndReloadWebView) { 112 ContentScriptIsInjectedAfterTerminateAndReloadWebView) {
119 ui_test_utils::NavigateToURL(browser(), GetWebViewEnabledWebUIURL()); 113 ui_test_utils::NavigateToURL(browser(), GetWebViewEnabledWebUIURL());
(...skipping 28 matching lines...) Expand all
148 browser()->profile(), GetWebViewEnabledWebUIURL()); 142 browser()->profile(), GetWebViewEnabledWebUIURL());
149 143
150 SetWebUIInstance( 144 SetWebUIInstance(
151 incognito_browser->tab_strip_model()->GetActiveWebContents()->GetWebUI()); 145 incognito_browser->tab_strip_model()->GetActiveWebContents()->GetWebUI());
152 146
153 ASSERT_TRUE(WebUIBrowserTest::RunJavascriptAsyncTest( 147 ASSERT_TRUE(WebUIBrowserTest::RunJavascriptAsyncTest(
154 "testAddContentScript", 148 "testAddContentScript",
155 new base::StringValue(GetTestUrl("empty.html").spec()))); 149 new base::StringValue(GetTestUrl("empty.html").spec())));
156 } 150 }
157 #endif 151 #endif
OLDNEW
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/post_message_channel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698