Chromium Code Reviews| Index: content/shell/renderer/test_runner/test_interfaces.cc |
| diff --git a/content/shell/renderer/test_runner/test_interfaces.cc b/content/shell/renderer/test_runner/test_interfaces.cc |
| index 6b88763ad931c258581e2bfcbab6950858896708..cf032fd7ea2cfca14e158d4688383cb887271676 100644 |
| --- a/content/shell/renderer/test_runner/test_interfaces.cc |
| +++ b/content/shell/renderer/test_runner/test_interfaces.cc |
| @@ -118,22 +118,10 @@ void TestInterfaces::ConfigureForTestWithURL(const blink::WebURL& test_url, |
| test_runner_->ClearDevToolsLocalStorage(); |
| if (spec.find("/inspector/") != std::string::npos) { |
| // Subfolder name determines default panel to open. |
| - std::string settings = ""; |
| std::string test_path = spec.substr(spec.find("/inspector/") + 11); |
| - size_t slash_index = test_path.find("/"); |
| - std::string test_path_setting = base::StringPrintf( |
| - "\"testPath\":\"\\\"%s\\\"\"", spec.c_str()); |
| - |
| - // TODO(pfeldman): remove once migrated to testPath. |
| - std::string last_active_panel; |
| - if (slash_index != std::string::npos) { |
| - last_active_panel = base::StringPrintf( |
| - ",\"lastActivePanel\":\"\\\"%s\\\"\"", |
| - test_path.substr(0, slash_index).c_str()); |
| - } |
| - |
| - test_runner_->ShowDevTools(base::StringPrintf("{%s%s}", |
| - test_path_setting.c_str(), last_active_panel.c_str()), std::string()); |
| + std::string settings = base::StringPrintf( |
|
Tom Sepez
2015/04/13 16:15:48
Even thought this is only for testing, and even th
pfeldman
2015/04/14 09:06:33
Done.
|
| + "{\"testPath\":\"\\\"%s\\\"\"}", spec.c_str()); |
| + test_runner_->ShowDevTools(settings, std::string()); |
| } |
| if (spec.find("/viewsource/") != std::string::npos) { |
| test_runner_->setShouldEnableViewSource(true); |