Changeset 129139 in webkit
- Timestamp:
- Sep 20, 2012 8:57:31 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r129138 r129139 1 2012-09-20 Stephen Chenney <schenney@chromium.org> 2 3 [Chromium] DRT does not support --dump-all-pixels flag 4 https://bugs.webkit.org/show_bug.cgi?id=95098 5 6 Reviewed by Dirk Pranke. 7 8 Add support for the --pixel-tests and shorthand -p option in Chromium DumpRenderTree. Use 9 of this flag causes pixel results to be created for all tests, regardless of 10 individual test options. If an individual test provides a pixel hash it will be used, 11 otherwise the hash will be empty. This replaces a previously defined but unused option 12 --dump-all-pixels, and is useful primarily when debugging DRT instances. 13 14 * DumpRenderTree/chromium/DumpRenderTree.cpp: 15 (runTest): Add a parameter and code to force pixel results for the test. 16 (main): Add parameter handling for --pixels-test and -p, and remove --dump-all-pixels. 17 1 18 2012-09-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 19 -
trunk/Tools/DumpRenderTree/chromium/DumpRenderTree.cpp
r127794 r129139 44 44 45 45 static const char optionComplexText[] = "--complex-text"; 46 static const char optionDumpAllPixels[] = "--dump-all-pixels"; 46 static const char optionDumpPixels[] = "--pixel-tests"; 47 static const char optionDumpPixelsShortForm[] = "-p"; 47 48 static const char optionNotree[] = "--notree"; 48 49 static const char optionThreaded[] = "--threaded"; … … 86 87 }; 87 88 88 static void runTest(TestShell& shell, TestParams& params, const string& inputLine )89 static void runTest(TestShell& shell, TestParams& params, const string& inputLine, const bool forceDumpPixels) 89 90 { 90 91 int oldTimeoutMsec = shell.layoutTestTimeout(); … … 104 105 shell.setDumpWhenFinished(isLastLoad); 105 106 shell.resetTestController(); 106 shell.runFileTest(params, command.shouldDumpPixels );107 shell.runFileTest(params, command.shouldDumpPixels || forceDumpPixels); 107 108 } 108 109 } else { 109 110 shell.resetTestController(); 110 shell.runFileTest(params, command.shouldDumpPixels );111 shell.runFileTest(params, command.shouldDumpPixels || forceDumpPixels); 111 112 } 112 113 shell.setLayoutTestTimeout(oldTimeoutMsec); … … 121 122 Vector<string> tests; 122 123 bool serverMode = false; 124 bool dumpAllPixels = false; 123 125 bool allowExternalPages = false; 124 126 bool startupDialog = false; … … 140 142 if (argument == "-") 141 143 serverMode = true; 144 else if (argument == optionDumpPixels || argument == optionDumpPixelsShortForm) 145 dumpAllPixels = true; 142 146 else if (argument == optionNotree) 143 147 params.dumpTree = false; … … 240 244 if (!strcmp(testString, "QUIT")) 241 245 break; 242 runTest(shell, params, testString );246 runTest(shell, params, testString, dumpAllPixels); 243 247 } 244 248 } else if (!tests.size()) … … 247 251 params.printSeparators = tests.size() > 1; 248 252 for (unsigned i = 0; i < tests.size(); i++) 249 runTest(shell, params, tests[i] );253 runTest(shell, params, tests[i], dumpAllPixels); 250 254 } 251 255
Note: See TracChangeset
for help on using the changeset viewer.