| 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 "webkit/tools/test_shell/test_shell_switches.h" | 5 #include "webkit/tools/test_shell/test_shell_switches.h" |
| 6 | 6 |
| 7 namespace test_shell { | 7 namespace test_shell { |
| 8 | 8 |
| 9 // Suppresses all error dialogs when present. | 9 // Suppresses all error dialogs when present. |
| 10 const char kNoErrorDialogs[] = "noerrdialogs"; | 10 const char kNoErrorDialogs[] = "noerrdialogs"; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Make the test shell load the test URL multiple times. The output dump will | 37 // Make the test shell load the test URL multiple times. The output dump will |
| 38 // only be made from the default last run. | 38 // only be made from the default last run. |
| 39 const char kMultipleLoads[] = "multiple-loads"; | 39 const char kMultipleLoads[] = "multiple-loads"; |
| 40 | 40 |
| 41 // JavaScript flags passed to engine. If multiple loads has been specified this | 41 // JavaScript flags passed to engine. If multiple loads has been specified this |
| 42 // can be a list separated by commas. Each set of flags are passed to the engine | 42 // can be a list separated by commas. Each set of flags are passed to the engine |
| 43 // in the corresponding load. | 43 // in the corresponding load. |
| 44 const char kJavaScriptFlags[] = "js-flags"; | 44 const char kJavaScriptFlags[] = "js-flags"; |
| 45 | 45 |
| 46 // Run the http cache in record mode. | |
| 47 const char kRecordMode[] = "record-mode"; | |
| 48 | |
| 49 // Run the http cache in playback mode. | |
| 50 const char kPlaybackMode[] = "playback-mode"; | |
| 51 | |
| 52 // Don't record/playback events when using record & playback. | |
| 53 const char kNoEvents[] = "no-events"; | |
| 54 | |
| 55 // Dump stats table on exit. | 46 // Dump stats table on exit. |
| 56 const char kDumpStatsTable[] = "stats"; | 47 const char kDumpStatsTable[] = "stats"; |
| 57 | 48 |
| 58 // Use a specified cache directory. | 49 // Use a specified cache directory. |
| 59 const char kCacheDir[] = "cache-dir"; | 50 const char kCacheDir[] = "cache-dir"; |
| 60 | 51 |
| 61 // Enable cookies on the file:// scheme. --layout-tests also enables this. | 52 // Enable cookies on the file:// scheme. --layout-tests also enables this. |
| 62 const char kEnableFileCookies[] = "enable-file-cookies"; | 53 const char kEnableFileCookies[] = "enable-file-cookies"; |
| 63 | 54 |
| 64 // Allow scripts to close windows in all cases. | 55 // Allow scripts to close windows in all cases. |
| 65 const char kAllowScriptsToCloseWindows[] = "allow-scripts-to-close-windows"; | 56 const char kAllowScriptsToCloseWindows[] = "allow-scripts-to-close-windows"; |
| 66 | 57 |
| 67 // Test the system dependencies (themes, fonts, ...). When this flag is | 58 // Test the system dependencies (themes, fonts, ...). When this flag is |
| 68 // specified, the test shell will exit immediately with either 0 (success) or | 59 // specified, the test shell will exit immediately with either 0 (success) or |
| 69 // 1 (failure). Combining with other flags has no effect. | 60 // 1 (failure). Combining with other flags has no effect. |
| 70 const char kCheckLayoutTestSystemDeps[] = "check-layout-test-sys-deps"; | 61 const char kCheckLayoutTestSystemDeps[] = "check-layout-test-sys-deps"; |
| 71 | 62 |
| 72 // If set, we are running under GDB so allow a certain class of errors | 63 // If set, we are running under GDB so allow a certain class of errors |
| 73 // to happen even if in layout test mode. | 64 // to happen even if in layout test mode. |
| 74 const char kGDB[] = "gdb"; | 65 const char kGDB[] = "gdb"; |
| 75 | 66 |
| 76 // Make functions of the Profiler class available in javascript | |
| 77 const char kProfiler[] = "profiler"; | |
| 78 | |
| 79 // Make functions of the HeapProfiler class available in javascript | |
| 80 const char kHeapProfiler[] = "heap-profiler"; | |
| 81 | |
| 82 const char kAllowExternalPages[] = "allow-external-pages"; | 67 const char kAllowExternalPages[] = "allow-external-pages"; |
| 83 | 68 |
| 84 const char kEnableAccel2DCanvas[] = "enable-accelerated-2d-canvas"; | 69 const char kEnableAccel2DCanvas[] = "enable-accelerated-2d-canvas"; |
| 85 | 70 |
| 86 const char kEnableAccelCompositing[] = "enable-accelerated-compositing"; | 71 const char kEnableAccelCompositing[] = "enable-accelerated-compositing"; |
| 87 | 72 |
| 88 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; | 73 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; |
| 89 | 74 |
| 90 } // namespace test_shell | 75 } // namespace test_shell |
| OLD | NEW |