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

Unified Diff: components/test_runner/test_interfaces.cc

Issue 2513423003: DevTools: Convert inspector-unit tests to use reusable test harness (Closed)
Patch Set: Moved type definition out of externs Created 4 years 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: components/test_runner/test_interfaces.cc
diff --git a/components/test_runner/test_interfaces.cc b/components/test_runner/test_interfaces.cc
index e5f0c0762b1bf9dc8272b4d79616ec75425ba7b2..3e3e715664004ce57d92d09d82253ab3844af4be 100644
--- a/components/test_runner/test_interfaces.cc
+++ b/components/test_runner/test_interfaces.cc
@@ -96,7 +96,8 @@ void TestInterfaces::ConfigureForTestWithURL(const blink::WebURL& test_url,
if (spec.find("/inspector/") != std::string::npos ||
spec.find("/inspector-enabled/") != std::string::npos)
test_runner_->ClearDevToolsLocalStorage();
- if (spec.find("/inspector/") != std::string::npos) {
+ if (spec.find("/inspector/") != std::string::npos &&
+ spec.find("unit_test_runner.html") == std::string::npos) {
// Subfolder name determines default panel to open.
std::string test_path = spec.substr(spec.find("/inspector/") + 11);
base::DictionaryValue settings;

Powered by Google App Engine
This is Rietveld 408576698