OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/cancelable_callback.h" | 6 #include "base/cancelable_callback.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 Browser* browser = window_->browser(); | 405 Browser* browser = window_->browser(); |
406 browser->CloseAllTabs(); | 406 browser->CloseAllTabs(); |
407 BrowserClosedObserver close_observer(browser); | 407 BrowserClosedObserver close_observer(browser); |
408 } | 408 } |
409 | 409 |
410 DevToolsWindow* window_; | 410 DevToolsWindow* window_; |
411 }; | 411 }; |
412 | 412 |
413 | 413 |
414 // Tests scripts panel showing. | 414 // Tests scripts panel showing. |
415 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) { | 415 // Disabled - see http://crbug.com/124300 |
| 416 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestShowScriptsTab) { |
416 RunTest("testShowScriptsTab", kDebuggerTestPage); | 417 RunTest("testShowScriptsTab", kDebuggerTestPage); |
417 } | 418 } |
418 | 419 |
419 // Tests that scripts tab is populated with inspected scripts even if it | 420 // Tests that scripts tab is populated with inspected scripts even if it |
420 // hadn't been shown by the moment inspected paged refreshed. | 421 // hadn't been shown by the moment inspected paged refreshed. |
421 // @see http://crbug.com/26312 | 422 // @see http://crbug.com/26312 |
422 IN_PROC_BROWSER_TEST_F( | 423 IN_PROC_BROWSER_TEST_F( |
423 DevToolsSanityTest, | 424 DevToolsSanityTest, |
424 DISABLED_TestScriptsTabIsPopulatedOnInspectedPageRefresh) { | 425 DISABLED_TestScriptsTabIsPopulatedOnInspectedPageRefresh) { |
425 // Clear inspector settings to ensure that Elements will be | 426 // Clear inspector settings to ensure that Elements will be |
(...skipping 29 matching lines...) Expand all Loading... |
455 | 456 |
456 // Tests that a content script is in the scripts list. | 457 // Tests that a content script is in the scripts list. |
457 // http://crbug.com/114104 | 458 // http://crbug.com/114104 |
458 IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, | 459 IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, |
459 DISABLED_TestContentScriptIsPresent) { | 460 DISABLED_TestContentScriptIsPresent) { |
460 LoadExtension("simple_content_script"); | 461 LoadExtension("simple_content_script"); |
461 RunTest("testContentScriptIsPresent", kPageWithContentScript); | 462 RunTest("testContentScriptIsPresent", kPageWithContentScript); |
462 } | 463 } |
463 | 464 |
464 // Tests that scripts are not duplicated after Scripts Panel switch. | 465 // Tests that scripts are not duplicated after Scripts Panel switch. |
| 466 // Disabled - see http://crbug.com/124300 |
465 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, | 467 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, |
466 TestNoScriptDuplicatesOnPanelSwitch) { | 468 DISABLED_TestNoScriptDuplicatesOnPanelSwitch) { |
467 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage); | 469 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage); |
468 } | 470 } |
469 | 471 |
470 // Tests that debugger works correctly if pause event occurs when DevTools | 472 // Tests that debugger works correctly if pause event occurs when DevTools |
471 // frontend is being loaded. | 473 // frontend is being loaded. |
472 // http://crbug.com/106114 | 474 // http://crbug.com/106114 |
473 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, | 475 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, |
474 DISABLED_TestPauseWhenLoadingDevTools) { | 476 DISABLED_TestPauseWhenLoadingDevTools) { |
475 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); | 477 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); |
476 } | 478 } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 content::CONSOLE_MESSAGE_LEVEL_LOG, | 607 content::CONSOLE_MESSAGE_LEVEL_LOG, |
606 "log"); | 608 "log"); |
607 devtools_manager->AddMessageToConsole(agent_host, | 609 devtools_manager->AddMessageToConsole(agent_host, |
608 content::CONSOLE_MESSAGE_LEVEL_ERROR, | 610 content::CONSOLE_MESSAGE_LEVEL_ERROR, |
609 "error"); | 611 "error"); |
610 RunTestFunction(window_, "checkLogAndErrorMessages"); | 612 RunTestFunction(window_, "checkLogAndErrorMessages"); |
611 CloseDevToolsWindow(); | 613 CloseDevToolsWindow(); |
612 } | 614 } |
613 | 615 |
614 } // namespace | 616 } // namespace |
OLD | NEW |