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
3 // found in the LICENSE file.
5 #include "content/shell/common/shell_switches.h"
9 // Allow access to external pages during layout tests.
10 const char kAllowExternalPages
[] = "allow-external-pages";
12 // Check whether all system dependencies for running layout tests are met.
13 const char kCheckLayoutTestSysDeps
[] = "check-layout-test-sys-deps";
15 // Tells Content Shell that it's running as a content_browsertest.
16 const char kContentBrowserTest
[] = "browser-test";
18 // Makes Content Shell use the given path for its data directory.
19 const char kContentShellDataPath
[] = "data-path";
21 // The directory breakpad should store minidumps in.
22 const char kCrashDumpsDir
[] = "crash-dumps-dir";
24 // Request pages to be dumped as text once they finished loading.
25 const char kDumpRenderTree
[] = "dump-render-tree";
27 // Enable accelerated 2D canvas.
28 const char kEnableAccelerated2DCanvas
[] = "enable-accelerated-2d-canvas";
30 // Enables the leak detection of loading webpages. This allows us to check
31 // whether or not reloading a webpage releases web-related objects correctly.
32 const char kEnableLeakDetection
[] = "enable-leak-detection";
34 // Encode binary layout test results (images, audio) using base64.
35 const char kEncodeBinary
[] = "encode-binary";
37 // Exposes the window.internals object to JavaScript for interactive development
38 // and debugging of layout tests that rely on it.
39 const char kExposeInternalsForTesting
[] = "expose-internals-for-testing";
41 // This makes us disable some web-platform runtime features so that we test
42 // content_shell as if it was a stable release. It is only followed when
43 // kDumpRenderTree is set. For the features' level, see
44 // http://dev.chromium.org/blink/runtime-enabled-features.
45 const char kStableReleaseMode
[] = "stable-release-mode";
47 } // namespace switches