Changeset 73256 in webkit
- Timestamp:
- Dec 3, 2010 2:20:13 AM (13 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r73255 r73256 1 2010-12-03 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r73228. 4 http://trac.webkit.org/changeset/73228 5 https://bugs.webkit.org/show_bug.cgi?id=50448 6 7 r73211 seemed to break Chromium's "Webkit Win (dbg)(2)" bot. 8 (Requested by yutak on #webkit). 9 10 * Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py: 11 * Scripts/webkitpy/layout_tests/test_types/image_diff.py: 12 * Scripts/webkitpy/layout_tests/test_types/test_type_base.py: 13 * Scripts/webkitpy/layout_tests/test_types/test_type_base_unittest.py: 14 * Scripts/webkitpy/layout_tests/test_types/text_diff.py: 15 1 16 2010-12-03 Sheriff Bot <webkit.review.bot@gmail.com> 2 17 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py
r73228 r73256 387 387 test_input.filename) 388 388 test_output = driver.run_test(test_input) 389 return self._process_output(test_input , test_output)390 391 def _process_output(self, test_ input, test_output):389 return self._process_output(test_input.filename, test_output) 390 391 def _process_output(self, test_filename, test_output): 392 392 """Receives the output from a DumpRenderTree process, subjects it to a 393 393 number of tests, and returns a list of failure types the test produced. 394 394 395 395 Args: 396 test_ input: a TestInput object396 test_filename: full path to the test in question. 397 397 test_output: a TestOutput object containing the output of the test 398 398 … … 400 400 """ 401 401 failures = [] 402 test_filename = test_input.filename403 402 404 403 if test_output.crash: … … 428 427 start_diff_time = time.time() 429 428 new_failures = test_type.compare_output(self._port, 430 test_ input,429 test_filename, 431 430 self._test_args, 432 431 test_output, -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/test_types/image_diff.py
r73228 r73256 91 91 return port.diff_image(actual_image, expected_image, diff_filename) 92 92 93 def compare_output(self, port, test_input, test_args, actual_test_output,93 def compare_output(self, port, filename, test_args, actual_test_output, 94 94 expected_test_output): 95 95 """Implementation of CompareOutput that checks the output image and … … 97 97 """ 98 98 failures = [] 99 filename = test_input.filename100 99 101 100 # If we didn't produce a hash file, this test must be text-only. -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/test_types/test_type_base.py
r73228 r73256 141 141 return os.path.splitext(output_filename)[0] + modifier 142 142 143 def compare_output(self, port, test_input, test_args, actual_test_output,143 def compare_output(self, port, filename, test_args, actual_test_output, 144 144 expected_test_output): 145 145 """Method that compares the output from the test with the … … 150 150 Args: 151 151 port: object implementing port-specific information and methods 152 test_input: a TestInput object152 filename: absolute filename to test file 153 153 test_args: a TestArguments object holding optional additional 154 154 arguments -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/test_types/test_type_base_unittest.py
r73228 r73256 40 40 test_type = test_type_base.TestTypeBase(None, None) 41 41 self.assertRaises(NotImplementedError, test_type.compare_output, 42 None, None, test_type_base.TestArguments(), None, None) 42 None, "foo.txt", '', 43 test_type_base.TestArguments(), 'Debug') 43 44 44 45 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/test_types/text_diff.py
r73228 r73256 56 56 return norm + "\n" 57 57 58 def compare_output(self, port, test_input, test_args, actual_test_output,58 def compare_output(self, port, filename, test_args, actual_test_output, 59 59 expected_test_output): 60 60 """Implementation of CompareOutput that checks the output text against … … 67 67 # we do not ever decode it inside run-webkit-tests. For some tests 68 68 # DumpRenderTree may not output utf-8 text (e.g. webarchives). 69 self._save_baseline_data( test_input.filename, actual_test_output.text,69 self._save_baseline_data(filename, actual_test_output.text, 70 70 ".txt", encoding=None, 71 71 generate_new_baseline=test_args.new_baseline) … … 80 80 if port.compare_text(actual_text, expected_text): 81 81 # Text doesn't match, write output files. 82 self.write_output_files( test_input.filename, ".txt", actual_text,82 self.write_output_files(filename, ".txt", actual_text, 83 83 expected_text, encoding=None, 84 84 print_text_diffs=True)
Note: See TracChangeset
for help on using the changeset viewer.