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

Side by Side Diff: content/shell/common/layout_test/layout_test_switches.cc

Issue 2448143004: DevTools: add custom-devtools-frontend flag for content shell layout tests (Closed)
Patch Set: nit Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/shell/common/layout_test/layout_test_switches.h" 5 #include "content/shell/common/layout_test/layout_test_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_split.h" 8 #include "base/strings/string_split.h"
9 9
10 namespace switches { 10 namespace switches {
11 11
12 // Allow access to external pages during layout tests. 12 // Allow access to external pages during layout tests.
13 const char kAllowExternalPages[] = "allow-external-pages"; 13 const char kAllowExternalPages[] = "allow-external-pages";
14 14
15 // Check whether all system dependencies for running layout tests are met. 15 // Check whether all system dependencies for running layout tests are met.
16 const char kCheckLayoutTestSysDeps[] = "check-layout-test-sys-deps"; 16 const char kCheckLayoutTestSysDeps[] = "check-layout-test-sys-deps";
17 17
18 // When specified to "enable-leak-detection" command-line option, 18 // When specified to "enable-leak-detection" command-line option,
19 // causes the leak detector to cause immediate crash when found leak. 19 // causes the leak detector to cause immediate crash when found leak.
20 const char kCrashOnFailure[] = "crash-on-failure"; 20 const char kCrashOnFailure[] = "crash-on-failure";
21 21
22 // Run devtools tests in debug mode (not bundled and minified) 22 // Run devtools tests in debug mode (not bundled and minified)
23 const char kDebugDevTools[] = "debug-devtools"; 23 const char kDebugDevTools[] = "debug-devtools";
24 24
25 // Specify a custom path to devtools for devtools tests
26 const char kCustomDevToolsFrontend[] = "custom-devtools-frontend";
27
25 // Enable accelerated 2D canvas. 28 // Enable accelerated 2D canvas.
26 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; 29 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas";
27 30
28 // Enable font antialiasing for pixel tests. 31 // Enable font antialiasing for pixel tests.
29 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; 32 const char kEnableFontAntialiasing[] = "enable-font-antialiasing";
30 33
31 // Always use the complex text path for layout tests. 34 // Always use the complex text path for layout tests.
32 const char kAlwaysUseComplexText[] = "always-use-complex-text"; 35 const char kAlwaysUseComplexText[] = "always-use-complex-text";
33 36
34 // Enables the leak detection of loading webpages. This allows us to check 37 // Enables the leak detection of loading webpages. This allows us to check
35 // whether or not reloading a webpage releases web-related objects correctly. 38 // whether or not reloading a webpage releases web-related objects correctly.
36 const char kEnableLeakDetection[] = "enable-leak-detection"; 39 const char kEnableLeakDetection[] = "enable-leak-detection";
37 40
38 // Encode binary layout test results (images, audio) using base64. 41 // Encode binary layout test results (images, audio) using base64.
39 const char kEncodeBinary[] = "encode-binary"; 42 const char kEncodeBinary[] = "encode-binary";
40 43
41 // Request the render trees of pages to be dumped as text once they have 44 // Request the render trees of pages to be dumped as text once they have
42 // finished loading. 45 // finished loading.
43 const char kRunLayoutTest[] = "run-layout-test"; 46 const char kRunLayoutTest[] = "run-layout-test";
44 47
45 // This makes us disable some web-platform runtime features so that we test 48 // This makes us disable some web-platform runtime features so that we test
46 // content_shell as if it was a stable release. It is only followed when 49 // content_shell as if it was a stable release. It is only followed when
47 // kRunLayoutTest is set. For the features' level, see 50 // kRunLayoutTest is set. For the features' level, see
48 // http://dev.chromium.org/blink/runtime-enabled-features. 51 // http://dev.chromium.org/blink/runtime-enabled-features.
49 const char kStableReleaseMode[] = "stable-release-mode"; 52 const char kStableReleaseMode[] = "stable-release-mode";
50 53
51 } // namespace switches 54 } // namespace switches
OLDNEW
« no previous file with comments | « content/shell/common/layout_test/layout_test_switches.h ('k') | third_party/WebKit/Source/devtools/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698