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

Unified Diff: chrome/browser/devtools/devtools_window_testing.cc

Issue 2522613003: DevTools: respect isUnderTest conditions in the browser tests. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_window_testing.cc
diff --git a/chrome/browser/devtools/devtools_window_testing.cc b/chrome/browser/devtools/devtools_window_testing.cc
index 39f585e3774c00b453f1400250b59f0cd2b486a8..e46c36a02e42a39bf82c506e213a01ba71412878 100644
--- a/chrome/browser/devtools/devtools_window_testing.cc
+++ b/chrome/browser/devtools/devtools_window_testing.cc
@@ -112,8 +112,8 @@ DevToolsWindow* DevToolsWindowTesting::OpenDevToolsWindowSync(
content::WebContents* inspected_web_contents,
bool is_docked) {
std::string settings = is_docked ?
- "{\"currentDockState\":\"\\\"bottom\\\"\"}" :
- "{\"currentDockState\":\"\\\"undocked\\\"\"}";
+ "{\"isUnderTest\": true, \"currentDockState\":\"\\\"bottom\\\"\"}" :
+ "{\"isUnderTest\": true, \"currentDockState\":\"\\\"undocked\\\"\"}";
scoped_refptr<content::DevToolsAgentHost> agent(
content::DevToolsAgentHost::GetOrCreateFor(inspected_web_contents));
DevToolsWindow::ToggleDevToolsWindow(
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698