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"; |
(...skipping 10 matching lines...) Expand all Loading... |
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, | 24 // When specified to "enable-leak-detection" command-line option, |
25 // causes the leak detector to cause immediate crash when found leak. | 25 // causes the leak detector to cause immediate crash when found leak. |
26 const char kCrashOnFailure[] = "crash-on-failure"; | 26 const char kCrashOnFailure[] = "crash-on-failure"; |
27 | 27 |
28 // Request pages to be dumped as text once they finished loading. | 28 // Request pages to be dumped as text once they finished loading. |
29 const char kDumpRenderTree[] = "dump-render-tree"; | 29 const char kDumpRenderTree[] = "dump-render-tree"; |
30 | 30 |
| 31 // Expose window.ipcTester object for testing |
| 32 const char kExposeIpcEcho[] = "expose-ipc-echo"; |
| 33 |
31 // Enable accelerated 2D canvas. | 34 // Enable accelerated 2D canvas. |
32 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; | 35 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; |
33 | 36 |
34 // Enable font antialiasing for pixel tests. | 37 // Enable font antialiasing for pixel tests. |
35 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; | 38 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; |
36 | 39 |
37 // Enables the leak detection of loading webpages. This allows us to check | 40 // Enables the leak detection of loading webpages. This allows us to check |
38 // whether or not reloading a webpage releases web-related objects correctly. | 41 // whether or not reloading a webpage releases web-related objects correctly. |
39 const char kEnableLeakDetection[] = "enable-leak-detection"; | 42 const char kEnableLeakDetection[] = "enable-leak-detection"; |
40 | 43 |
41 // Encode binary layout test results (images, audio) using base64. | 44 // Encode binary layout test results (images, audio) using base64. |
42 const char kEncodeBinary[] = "encode-binary"; | 45 const char kEncodeBinary[] = "encode-binary"; |
43 | 46 |
44 // Exposes the window.internals object to JavaScript for interactive development | 47 // Exposes the window.internals object to JavaScript for interactive development |
45 // and debugging of layout tests that rely on it. | 48 // and debugging of layout tests that rely on it. |
46 const char kExposeInternalsForTesting[] = "expose-internals-for-testing"; | 49 const char kExposeInternalsForTesting[] = "expose-internals-for-testing"; |
47 | 50 |
48 // Registers additional font files on Windows (for fonts outside the usual | 51 // Registers additional font files on Windows (for fonts outside the usual |
49 // %WINDIR%\Fonts location). Multiple files can be used by separating them | 52 // %WINDIR%\Fonts location). Multiple files can be used by separating them |
50 // with a semicolon (;). | 53 // with a semicolon (;). |
51 const char kRegisterFontFiles[] = "register-font-files"; | 54 const char kRegisterFontFiles[] = "register-font-files"; |
52 | 55 |
53 // This makes us disable some web-platform runtime features so that we test | 56 // This makes us disable some web-platform runtime features so that we test |
54 // content_shell as if it was a stable release. It is only followed when | 57 // content_shell as if it was a stable release. It is only followed when |
55 // kDumpRenderTree is set. For the features' level, see | 58 // kDumpRenderTree is set. For the features' level, see |
56 // http://dev.chromium.org/blink/runtime-enabled-features. | 59 // http://dev.chromium.org/blink/runtime-enabled-features. |
57 const char kStableReleaseMode[] = "stable-release-mode"; | 60 const char kStableReleaseMode[] = "stable-release-mode"; |
58 | 61 |
59 } // namespace switches | 62 } // namespace switches |
OLD | NEW |