OLD | NEW |
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) |
| 23 const char kDebugDevTools[] = "debug-devtools"; |
| 24 |
22 // Enable accelerated 2D canvas. | 25 // Enable accelerated 2D canvas. |
23 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; | 26 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; |
24 | 27 |
25 // Enable font antialiasing for pixel tests. | 28 // Enable font antialiasing for pixel tests. |
26 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; | 29 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; |
27 | 30 |
28 // Always use the complex text path for layout tests. | 31 // Always use the complex text path for layout tests. |
29 const char kAlwaysUseComplexText[] = "always-use-complex-text"; | 32 const char kAlwaysUseComplexText[] = "always-use-complex-text"; |
30 | 33 |
31 // Enables the leak detection of loading webpages. This allows us to check | 34 // Enables the leak detection of loading webpages. This allows us to check |
32 // whether or not reloading a webpage releases web-related objects correctly. | 35 // whether or not reloading a webpage releases web-related objects correctly. |
33 const char kEnableLeakDetection[] = "enable-leak-detection"; | 36 const char kEnableLeakDetection[] = "enable-leak-detection"; |
34 | 37 |
35 // Encode binary layout test results (images, audio) using base64. | 38 // Encode binary layout test results (images, audio) using base64. |
36 const char kEncodeBinary[] = "encode-binary"; | 39 const char kEncodeBinary[] = "encode-binary"; |
37 | 40 |
38 // Request the render trees of pages to be dumped as text once they have | 41 // Request the render trees of pages to be dumped as text once they have |
39 // finished loading. | 42 // finished loading. |
40 const char kRunLayoutTest[] = "run-layout-test"; | 43 const char kRunLayoutTest[] = "run-layout-test"; |
41 | 44 |
42 // This makes us disable some web-platform runtime features so that we test | 45 // This makes us disable some web-platform runtime features so that we test |
43 // content_shell as if it was a stable release. It is only followed when | 46 // content_shell as if it was a stable release. It is only followed when |
44 // kRunLayoutTest is set. For the features' level, see | 47 // kRunLayoutTest is set. For the features' level, see |
45 // http://dev.chromium.org/blink/runtime-enabled-features. | 48 // http://dev.chromium.org/blink/runtime-enabled-features. |
46 const char kStableReleaseMode[] = "stable-release-mode"; | 49 const char kStableReleaseMode[] = "stable-release-mode"; |
47 | 50 |
48 } // namespace switches | 51 } // namespace switches |
OLD | NEW |