⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284891 in webkit


Ignore:
Timestamp:
Oct 26, 2021, 12:51:18 PM (5 years ago)
Author:
Simon Fraser
Message:

The script should decide when an image diff cases, not ImageDiff
https://bugs.webkit.org/show_bug.cgi?id=232225

Unreviewed; respond to review feedback.

  • Scripts/webkitpy/port/image_diff.py:

(ImageDiffer._read):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r284890 r284891  
     12021-10-26  Simon Fraser  <simon.fraser@apple.com>
     2
     3        The script should decide when an image diff cases, not ImageDiff
     4        https://bugs.webkit.org/show_bug.cgi?id=232225
     5
     6        Unreviewed; respond to review feedback.
     7
     8        * Scripts/webkitpy/port/image_diff.py:
     9        (ImageDiffer._read):
     10
    1112021-10-26  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/Tools/Scripts/webkitpy/port/image_diff.py

    r284878 r284891  
    135135        m = re.match(b'diff: (.+)%', diff_output)
    136136        if not m:
    137             return ImageDiffResult(passed=False, diff_image=None, difference=0, tolerance=self._tolerance, error_string=err_str or "Failed to match ImageDiff output %s" % diff_output)
     137            return ImageDiffResult(passed=False, diff_image=None, difference=0, tolerance=self._tolerance, error_string=err_str or 'Failed to match ImageDiff output {}'.format(diff_output))
    138138
    139139        diff_percent = float(string_utils.decode(m.group(1), target_type=str))
Note: See TracChangeset for help on using the changeset viewer.