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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 // Tests raw headers text. | 515 // Tests raw headers text. |
516 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestNetworkRawHeadersText) { | 516 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestNetworkRawHeadersText) { |
517 RunTest("testNetworkRawHeadersText", kChunkedTestPage); | 517 RunTest("testNetworkRawHeadersText", kChunkedTestPage); |
518 } | 518 } |
519 | 519 |
520 // Tests that console messages are not duplicated on navigation back. | 520 // Tests that console messages are not duplicated on navigation back. |
521 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestConsoleOnNavigateBack) { | 521 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestConsoleOnNavigateBack) { |
522 RunTest("testConsoleOnNavigateBack", kNavigateBackTestPage); | 522 RunTest("testConsoleOnNavigateBack", kNavigateBackTestPage); |
523 } | 523 } |
524 | 524 |
525 #if defined(OS_MACOSX) | 525 #if defined(OS_MACOSX) || defined(OS_LINUX) |
526 // http://crbug.com/103539 | 526 // http://crbug.com/103539 |
527 #define TestReattachAfterCrash DISABLED_TestReattachAfterCrash | 527 #define TestReattachAfterCrash DISABLED_TestReattachAfterCrash |
528 #endif | 528 #endif |
529 // Tests that inspector will reattach to inspected page when it is reloaded | 529 // Tests that inspector will reattach to inspected page when it is reloaded |
530 // after a crash. See http://crbug.com/101952 | 530 // after a crash. See http://crbug.com/101952 |
531 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestReattachAfterCrash) { | 531 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestReattachAfterCrash) { |
532 OpenDevToolsWindow(kDebuggerTestPage); | 532 OpenDevToolsWindow(kDebuggerTestPage); |
533 | 533 |
534 ui_test_utils::CrashTab(GetInspectedTab()); | 534 ui_test_utils::CrashTab(GetInspectedTab()); |
535 ui_test_utils::WindowedNotificationObserver observer( | 535 ui_test_utils::WindowedNotificationObserver observer( |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 content::CONSOLE_MESSAGE_LEVEL_LOG, | 607 content::CONSOLE_MESSAGE_LEVEL_LOG, |
608 "log"); | 608 "log"); |
609 devtools_manager->AddMessageToConsole(agent_host, | 609 devtools_manager->AddMessageToConsole(agent_host, |
610 content::CONSOLE_MESSAGE_LEVEL_ERROR, | 610 content::CONSOLE_MESSAGE_LEVEL_ERROR, |
611 "error"); | 611 "error"); |
612 RunTestFunction(window_, "checkLogAndErrorMessages"); | 612 RunTestFunction(window_, "checkLogAndErrorMessages"); |
613 CloseDevToolsWindow(); | 613 CloseDevToolsWindow(); |
614 } | 614 } |
615 | 615 |
616 } // namespace | 616 } // namespace |
OLD | NEW |