| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 #define MAYBE_TestConsoleOnNavigateBack TestConsoleOnNavigateBack | 1059 #define MAYBE_TestConsoleOnNavigateBack TestConsoleOnNavigateBack |
| 1060 #endif | 1060 #endif |
| 1061 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestConsoleOnNavigateBack) { | 1061 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestConsoleOnNavigateBack) { |
| 1062 RunTest("testConsoleOnNavigateBack", kNavigateBackTestPage); | 1062 RunTest("testConsoleOnNavigateBack", kNavigateBackTestPage); |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDeviceEmulation) { | 1065 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDeviceEmulation) { |
| 1066 RunTest("testDeviceMetricsOverrides", "about:blank"); | 1066 RunTest("testDeviceMetricsOverrides", "about:blank"); |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDispatchKeyEventDoesNotCrash) { |
| 1070 RunTest("testDispatchKeyEventDoesNotCrash", "about:blank"); |
| 1071 } |
| 1072 |
| 1069 // Tests that settings are stored in profile correctly. | 1073 // Tests that settings are stored in profile correctly. |
| 1070 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestSettings) { | 1074 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestSettings) { |
| 1071 OpenDevToolsWindow("about:blank", true); | 1075 OpenDevToolsWindow("about:blank", true); |
| 1072 RunTestFunction(window_, "testSettings"); | 1076 RunTestFunction(window_, "testSettings"); |
| 1073 CloseDevToolsWindow(); | 1077 CloseDevToolsWindow(); |
| 1074 } | 1078 } |
| 1075 | 1079 |
| 1076 // Tests that external navigation from inspector page is always handled by | 1080 // Tests that external navigation from inspector page is always handled by |
| 1077 // DevToolsWindow and results in inspected page navigation. | 1081 // DevToolsWindow and results in inspected page navigation. |
| 1078 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsExternalNavigation) { | 1082 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsExternalNavigation) { |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1348 void SetUpCommandLine(base::CommandLine* command_line) override { | 1352 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 1349 command_line->AppendSwitch(switches::kEnableNetworkInformation); | 1353 command_line->AppendSwitch(switches::kEnableNetworkInformation); |
| 1350 command_line->AppendSwitch( | 1354 command_line->AppendSwitch( |
| 1351 switches::kEnableExperimentalWebPlatformFeatures); | 1355 switches::kEnableExperimentalWebPlatformFeatures); |
| 1352 } | 1356 } |
| 1353 }; | 1357 }; |
| 1354 | 1358 |
| 1355 IN_PROC_BROWSER_TEST_F(DevToolsNetInfoTest, EmulateNetworkConditions) { | 1359 IN_PROC_BROWSER_TEST_F(DevToolsNetInfoTest, EmulateNetworkConditions) { |
| 1356 RunTest("testEmulateNetworkConditions", kEmulateNetworkConditionsPage); | 1360 RunTest("testEmulateNetworkConditions", kEmulateNetworkConditionsPage); |
| 1357 } | 1361 } |
| OLD | NEW |