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 "content/shell/common/shell_switches.h" | 5 #include "content/shell/common/shell_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // Allow access to external pages during layout tests. | 9 // Allow access to external pages during layout tests. |
10 const char kAllowExternalPages[] = "allow-external-pages"; | 10 const char kAllowExternalPages[] = "allow-external-pages"; |
11 | 11 |
12 // Check whether all system dependencies for running layout tests are met. | 12 // Check whether all system dependencies for running layout tests are met. |
13 const char kCheckLayoutTestSysDeps[] = "check-layout-test-sys-deps"; | 13 const char kCheckLayoutTestSysDeps[] = "check-layout-test-sys-deps"; |
14 | 14 |
15 // Tells Content Shell that it's running as a content_browsertest. | 15 // Tells Content Shell that it's running as a content_browsertest. |
16 const char kContentBrowserTest[] = "browser-test"; | 16 const char kContentBrowserTest[] = "browser-test"; |
17 | 17 |
18 // Makes Content Shell use the given path for its data directory. | 18 // Makes Content Shell use the given path for its data directory. |
19 const char kContentShellDataPath[] = "data-path"; | 19 const char kContentShellDataPath[] = "data-path"; |
20 | 20 |
21 // The directory breakpad should store minidumps in. | 21 // The directory breakpad should store minidumps in. |
22 const char kCrashDumpsDir[] = "crash-dumps-dir"; | 22 const char kCrashDumpsDir[] = "crash-dumps-dir"; |
23 | 23 |
| 24 // When specified to "enable-leak-detection" command-line option, |
| 25 // causes the leak detector to cause immediate crash when found leak. |
| 26 const char kCrashOnFailure[] = "crash-on-failure"; |
| 27 |
24 // Request pages to be dumped as text once they finished loading. | 28 // Request pages to be dumped as text once they finished loading. |
25 const char kDumpRenderTree[] = "dump-render-tree"; | 29 const char kDumpRenderTree[] = "dump-render-tree"; |
26 | 30 |
27 // Enable accelerated 2D canvas. | 31 // Enable accelerated 2D canvas. |
28 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; | 32 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; |
29 | 33 |
30 // Enable font antialiasing for pixel tests. | 34 // Enable font antialiasing for pixel tests. |
31 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; | 35 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; |
32 | 36 |
33 // 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 |
(...skipping 12 matching lines...) Expand all Loading... |
46 // with a semicolon (;). | 50 // with a semicolon (;). |
47 const char kRegisterFontFiles[] = "register-font-files"; | 51 const char kRegisterFontFiles[] = "register-font-files"; |
48 | 52 |
49 // This makes us disable some web-platform runtime features so that we test | 53 // This makes us disable some web-platform runtime features so that we test |
50 // content_shell as if it was a stable release. It is only followed when | 54 // content_shell as if it was a stable release. It is only followed when |
51 // kDumpRenderTree is set. For the features' level, see | 55 // kDumpRenderTree is set. For the features' level, see |
52 // http://dev.chromium.org/blink/runtime-enabled-features. | 56 // http://dev.chromium.org/blink/runtime-enabled-features. |
53 const char kStableReleaseMode[] = "stable-release-mode"; | 57 const char kStableReleaseMode[] = "stable-release-mode"; |
54 | 58 |
55 } // namespace switches | 59 } // namespace switches |
OLD | NEW |