| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 | 436 |
| 437 // Tests scripts panel showing. | 437 // Tests scripts panel showing. |
| 438 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) { | 438 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) { |
| 439 RunTest("testShowScriptsTab", kDebuggerTestPage); | 439 RunTest("testShowScriptsTab", kDebuggerTestPage); |
| 440 } | 440 } |
| 441 | 441 |
| 442 // Tests that scripts tab is populated with inspected scripts even if it | 442 // Tests that scripts tab is populated with inspected scripts even if it |
| 443 // hadn't been shown by the moment inspected paged refreshed. | 443 // hadn't been shown by the moment inspected paged refreshed. |
| 444 // @see http://crbug.com/26312 | 444 // @see http://crbug.com/26312 |
| 445 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, | 445 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, |
| 446 TestScriptsTabIsPopulatedOnInspectedPageRefresh) { | 446 FAILS_TestScriptsTabIsPopulatedOnInspectedPageRefresh) { |
| 447 // Clear inspector settings to ensure that Elements will be | 447 // Clear inspector settings to ensure that Elements will be |
| 448 // current panel when DevTools window is open. | 448 // current panel when DevTools window is open. |
| 449 content::GetContentClient()->browser()->ClearInspectorSettings( | 449 content::GetContentClient()->browser()->ClearInspectorSettings( |
| 450 GetInspectedTab()->render_view_host()); | 450 GetInspectedTab()->render_view_host()); |
| 451 RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh", | 451 RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh", |
| 452 kDebuggerTestPage); | 452 kDebuggerTestPage); |
| 453 } | 453 } |
| 454 | 454 |
| 455 // Tests that a content script is in the scripts list. | 455 // Tests that a content script is in the scripts list. |
| 456 // This test is disabled, see bug 28961. | 456 // This test is disabled, see bug 28961. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 | 570 |
| 571 // Reload page to restart the worker. | 571 // Reload page to restart the worker. |
| 572 ui_test_utils::NavigateToURL(browser(), url); | 572 ui_test_utils::NavigateToURL(browser(), url); |
| 573 | 573 |
| 574 // Wait until worker script is paused on the debugger statement. | 574 // Wait until worker script is paused on the debugger statement. |
| 575 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); | 575 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); |
| 576 CloseDevToolsWindow(); | 576 CloseDevToolsWindow(); |
| 577 } | 577 } |
| 578 | 578 |
| 579 } // namespace | 579 } // namespace |
| OLD | NEW |