Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: chrome/browser/devtools/devtools_sanity_browsertest.cc

Issue 2143113003: [DevTools] Set skip_in_browser=true for synthethic keyboard events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698