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

Side by Side Diff: content/shell/common/shell_switches.cc

Issue 1394003004: Add flag to force complex text for tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 (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 #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 {
(...skipping 23 matching lines...) Expand all
34 34
35 // Expose window.ipcTester object for testing 35 // Expose window.ipcTester object for testing
36 const char kExposeIpcEcho[] = "expose-ipc-echo"; 36 const char kExposeIpcEcho[] = "expose-ipc-echo";
37 37
38 // Enable accelerated 2D canvas. 38 // Enable accelerated 2D canvas.
39 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; 39 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas";
40 40
41 // Enable font antialiasing for pixel tests. 41 // Enable font antialiasing for pixel tests.
42 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; 42 const char kEnableFontAntialiasing[] = "enable-font-antialiasing";
43 43
44 // Always use the complex text path for layout tests.
45 const char kAlwaysUseComplexText[] = "always-use-complex-text";
46
44 // Enables the leak detection of loading webpages. This allows us to check 47 // Enables the leak detection of loading webpages. This allows us to check
45 // whether or not reloading a webpage releases web-related objects correctly. 48 // whether or not reloading a webpage releases web-related objects correctly.
46 const char kEnableLeakDetection[] = "enable-leak-detection"; 49 const char kEnableLeakDetection[] = "enable-leak-detection";
47 50
48 // Encode binary layout test results (images, audio) using base64. 51 // Encode binary layout test results (images, audio) using base64.
49 const char kEncodeBinary[] = "encode-binary"; 52 const char kEncodeBinary[] = "encode-binary";
50 53
51 // Exposes the window.internals object to JavaScript for interactive development 54 // Exposes the window.internals object to JavaScript for interactive development
52 // and debugging of layout tests that rely on it. 55 // and debugging of layout tests that rely on it.
53 const char kExposeInternalsForTesting[] = "expose-internals-for-testing"; 56 const char kExposeInternalsForTesting[] = "expose-internals-for-testing";
(...skipping 22 matching lines...) Expand all
76 *base::CommandLine::ForCurrentProcess(); 79 *base::CommandLine::ForCurrentProcess();
77 if (command_line.HasSwitch(switches::kRegisterFontFiles)) { 80 if (command_line.HasSwitch(switches::kRegisterFontFiles)) {
78 files = base::SplitString( 81 files = base::SplitString(
79 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles), 82 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles),
80 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 83 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
81 } 84 }
82 return files; 85 return files;
83 } 86 }
84 87
85 } // namespace switches 88 } // namespace switches
OLDNEW
« no previous file with comments | « content/shell/common/shell_switches.h ('k') | content/shell/renderer/layout_test/layout_test_render_process_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698