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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 // Tests raw headers text. | 787 // Tests raw headers text. |
788 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkRawHeadersText) { | 788 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkRawHeadersText) { |
789 RunTest("testNetworkRawHeadersText", kChunkedTestPage); | 789 RunTest("testNetworkRawHeadersText", kChunkedTestPage); |
790 } | 790 } |
791 | 791 |
792 // Tests that console messages are not duplicated on navigation back. | 792 // Tests that console messages are not duplicated on navigation back. |
793 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestConsoleOnNavigateBack) { | 793 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestConsoleOnNavigateBack) { |
794 RunTest("testConsoleOnNavigateBack", kNavigateBackTestPage); | 794 RunTest("testConsoleOnNavigateBack", kNavigateBackTestPage); |
795 } | 795 } |
796 | 796 |
797 | 797 #if defined(OS_WIN) |
798 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDeviceEmulation) { | 798 // http://crbug.com/397888 |
| 799 #define MAYBE_TestDeviceEmulation DISABLED_TestDeviceEmulation |
| 800 #else |
| 801 #define MAYBE_TestDeviceEmulation TestDeviceEmulation |
| 802 #endif |
| 803 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestDeviceEmulation) { |
799 RunTest("testDeviceMetricsOverrides", "about:blank"); | 804 RunTest("testDeviceMetricsOverrides", "about:blank"); |
800 } | 805 } |
801 | 806 |
802 | 807 |
803 // Tests that external navigation from inspector page is always handled by | 808 // Tests that external navigation from inspector page is always handled by |
804 // DevToolsWindow and results in inspected page navigation. | 809 // DevToolsWindow and results in inspected page navigation. |
805 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsExternalNavigation) { | 810 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsExternalNavigation) { |
806 OpenDevToolsWindow(kDebuggerTestPage, true); | 811 OpenDevToolsWindow(kDebuggerTestPage, true); |
807 GURL url = test_server()->GetURL(kNavigateBackTestPage); | 812 GURL url = test_server()->GetURL(kNavigateBackTestPage); |
808 ui_test_utils::UrlLoadObserver observer(url, | 813 ui_test_utils::UrlLoadObserver observer(url, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 | 930 |
926 IN_PROC_BROWSER_TEST_F(RemoteDebuggingTest, RemoteDebugger) { | 931 IN_PROC_BROWSER_TEST_F(RemoteDebuggingTest, RemoteDebugger) { |
927 #if defined(OS_WIN) && defined(USE_ASH) | 932 #if defined(OS_WIN) && defined(USE_ASH) |
928 // Disable this test in Metro+Ash for now (http://crbug.com/262796). | 933 // Disable this test in Metro+Ash for now (http://crbug.com/262796). |
929 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) | 934 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) |
930 return; | 935 return; |
931 #endif | 936 #endif |
932 | 937 |
933 ASSERT_TRUE(RunExtensionTest("target_list")) << message_; | 938 ASSERT_TRUE(RunExtensionTest("target_list")) << message_; |
934 } | 939 } |
OLD | NEW |