| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/debugger/devtools_client_host.h" | 9 #include "chrome/browser/debugger/devtools_client_host.h" |
| 10 #include "chrome/browser/debugger/devtools_manager.h" | 10 #include "chrome/browser/debugger/devtools_manager.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 } | 252 } |
| 253 | 253 |
| 254 // Tests scripts panel showing. | 254 // Tests scripts panel showing. |
| 255 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) { | 255 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) { |
| 256 RunTest("testShowScriptsTab", kDebuggerTestPage); | 256 RunTest("testShowScriptsTab", kDebuggerTestPage); |
| 257 } | 257 } |
| 258 | 258 |
| 259 // Tests that scripts tab is populated with inspected scripts even if it | 259 // Tests that scripts tab is populated with inspected scripts even if it |
| 260 // hadn't been shown by the moment inspected paged refreshed. | 260 // hadn't been shown by the moment inspected paged refreshed. |
| 261 // @see http://crbug.com/26312 | 261 // @see http://crbug.com/26312 |
| 262 // Marked as disabled: crbug/73289. | |
| 263 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, | 262 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, |
| 264 DISABLED_TestScriptsTabIsPopulatedOnInspectedPageRefresh)
{ | 263 TestScriptsTabIsPopulatedOnInspectedPageRefresh) { |
| 265 // Clear inspector settings to ensure that Elements will be | 264 // Clear inspector settings to ensure that Elements will be |
| 266 // current panel when DevTools window is open. | 265 // current panel when DevTools window is open. |
| 267 GetInspectedTab()->render_view_host()->delegate()->ClearInspectorSettings(); | 266 GetInspectedTab()->render_view_host()->delegate()->ClearInspectorSettings(); |
| 268 RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh", | 267 RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh", |
| 269 kDebuggerTestPage); | 268 kDebuggerTestPage); |
| 270 } | 269 } |
| 271 | 270 |
| 272 // Tests that a content script is in the scripts list. | 271 // Tests that a content script is in the scripts list. |
| 273 // This test is disabled, see bug 28961. | 272 // This test is disabled, see bug 28961. |
| 274 IN_PROC_BROWSER_TEST_F(DevToolsExtensionDebugTest, | 273 IN_PROC_BROWSER_TEST_F(DevToolsExtensionDebugTest, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 289 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); | 288 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); |
| 290 } | 289 } |
| 291 | 290 |
| 292 // Tests that pressing 'Pause' will pause script execution if the script | 291 // Tests that pressing 'Pause' will pause script execution if the script |
| 293 // is already running. | 292 // is already running. |
| 294 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { | 293 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { |
| 295 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); | 294 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); |
| 296 } | 295 } |
| 297 | 296 |
| 298 } // namespace | 297 } // namespace |
| OLD | NEW |