Changeset 212237 in webkit
- Timestamp:
- Feb 13, 2017 11:58:38 AM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r212235 r212237 1 2017-02-13 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Nwtr unexpectedly passes mismatch ref test if the hashes doesn't match but no diff 4 https://bugs.webkit.org/show_bug.cgi?id=168221 5 6 Reviewed by Ryosuke Niwa. 7 8 There is a logic error in comparing mismatch ref test images. In 9 mismatch ref tests, it should be failed if two images has no diff. 10 But, if the hashes are different, nwtr unexpectedly pass the 11 mismatch ref test. 12 13 * Scripts/webkitpy/layout_tests/controllers/single_test_runner.py: 14 (SingleTestRunner._compare_output_with_reference): Fail the 15 mismatch ref test if hashes of two images are equal. Invoke 16 ImageDiff if the hashes don't match. 17 1 18 2017-02-13 Myles C. Maxfield <mmaxfield@apple.com> 2 19 -
trunk/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py
r209798 r212237 332 332 failures.append(test_failures.FailureReftestNoImagesGenerated(reference_filename)) 333 333 elif mismatch: 334 if reference_driver_output.image_hash == actual_driver_output.image_hash:334 if reference_driver_output.image_hash != actual_driver_output.image_hash: 335 335 diff_result = self._port.diff_image(reference_driver_output.image, actual_driver_output.image, tolerance=0) 336 336 if not diff_result[0]: 337 337 failures.append(test_failures.FailureReftestMismatchDidNotOccur(reference_filename)) 338 339 _log.warning(" %s -> ref test hashes matched but diff failed" % self._test_name)338 else: 339 failures.append(test_failures.FailureReftestMismatchDidNotOccur(reference_filename)) 340 340 341 341 elif reference_driver_output.image_hash != actual_driver_output.image_hash:
Note: See TracChangeset
for help on using the changeset viewer.