|
Lines 58-63
static const char optionEnableAccelerate
Tools/DumpRenderTree/chromium/DumpRenderTree.cpp_sec1
|
| 58 |
static const char optionStressOpt[] = "--stress-opt"; |
58 |
static const char optionStressOpt[] = "--stress-opt"; |
| 59 |
static const char optionStressDeopt[] = "--stress-deopt"; |
59 |
static const char optionStressDeopt[] = "--stress-deopt"; |
| 60 |
static const char optionJavaScriptFlags[] = "--js-flags="; |
60 |
static const char optionJavaScriptFlags[] = "--js-flags="; |
|
|
61 |
static const char optionNoTimeout[] = "--no-timeout="; |
| 61 |
|
62 |
|
| 62 |
static void runTest(TestShell& shell, TestParams& params, const string& testName, bool testShellMode) |
63 |
static void runTest(TestShell& shell, TestParams& params, const string& testName, bool testShellMode) |
| 63 |
{ |
64 |
{ |
|
Lines 123-128
int main(int argc, char* argv[])
Tools/DumpRenderTree/chromium/DumpRenderTree.cpp_sec2
|
| 123 |
bool stressDeopt = false; |
124 |
bool stressDeopt = false; |
| 124 |
bool hardwareAcceleratedGL = false; |
125 |
bool hardwareAcceleratedGL = false; |
| 125 |
string javaScriptFlags; |
126 |
string javaScriptFlags; |
|
|
127 |
bool noTimeout = false; |
| 126 |
for (int i = 1; i < argc; ++i) { |
128 |
for (int i = 1; i < argc; ++i) { |
| 127 |
string argument(argv[i]); |
129 |
string argument(argv[i]); |
| 128 |
if (argument == "-") |
130 |
if (argument == "-") |
|
Lines 155-160
int main(int argc, char* argv[])
Tools/DumpRenderTree/chromium/DumpRenderTree.cpp_sec3
|
| 155 |
stressDeopt = true; |
157 |
stressDeopt = true; |
| 156 |
else if (!argument.find(optionJavaScriptFlags)) |
158 |
else if (!argument.find(optionJavaScriptFlags)) |
| 157 |
javaScriptFlags = argument.substr(strlen(optionJavaScriptFlags)); |
159 |
javaScriptFlags = argument.substr(strlen(optionJavaScriptFlags)); |
|
|
160 |
else if (!argument.find(optionNoTimeout)) |
| 161 |
noTimeout = true; |
| 158 |
else if (argument.size() && argument[0] == '-') |
162 |
else if (argument.size() && argument[0] == '-') |
| 159 |
fprintf(stderr, "Unknown option: %s\n", argv[i]); |
163 |
fprintf(stderr, "Unknown option: %s\n", argv[i]); |
| 160 |
else |
164 |
else |
|
Lines 182-187
int main(int argc, char* argv[])
Tools/DumpRenderTree/chromium/DumpRenderTree.cpp_sec4
|
| 182 |
shell.setJavaScriptFlags(javaScriptFlags); |
186 |
shell.setJavaScriptFlags(javaScriptFlags); |
| 183 |
shell.setStressOpt(stressOpt); |
187 |
shell.setStressOpt(stressOpt); |
| 184 |
shell.setStressDeopt(stressDeopt); |
188 |
shell.setStressDeopt(stressDeopt); |
|
|
189 |
if (noTimeout) { |
| 190 |
// 0x20000000ms is big enough for the purpose to avoid timeout in debugging. |
| 191 |
shell.setLayoutTestTimeout(0x20000000); |
| 192 |
} |
| 185 |
if (serverMode && !tests.size()) { |
193 |
if (serverMode && !tests.size()) { |
| 186 |
params.printSeparators = true; |
194 |
params.printSeparators = true; |
| 187 |
char testString[2048]; // 2048 is the same as the sizes of other platforms. |
195 |
char testString[2048]; // 2048 is the same as the sizes of other platforms. |