gecko-dev/layout/reftests/pixel-rounding
L. David Baron 1e88f0f003 Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert
This patch was written entirely by the following script:

  #!/bin/bash

  if [ ! -d "./.hg" ]
  then
    echo "Not in a source tree." 1>&2
    exit 1
  fi

  find . -regex '.*\(ref\|crash\)test.*\.list' | while read FILENAME
  do
    echo "Processing ${FILENAME}."
    # The following has four substitutions:
    # * The first one replaces the *first* argument to fuzzy() when it doesn't
    #   have a - in it, by replacing it with an explicit 0-N range.
    # * The second one does the same for the *second* argument to fuzzy().
    # * The third does the same for the *second* argument to fuzzy-if().
    # * The fourth does the same for the *third* argument to fuzzy-if().
    #
    # Note that this is using perl rather than sed because perl doesn't
    # support non-greedy matching, which is needed for the first argument to
    # fuzzy-if.
    perl -pi -e 's/(fuzzy\()([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy\([^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,)([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,[^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g' "${FILENAME}"
  done

Differential Revision: https://phabricator.services.mozilla.com/D2974

--HG--
extra : moz-landing-system : lando
2018-08-09 20:10:21 +00:00
..
background-color-base.html
background-color-height-4.html
background-color-height-5.html
background-color-height-6.html
background-color-height-10.html
background-color-height-top-4.html
background-color-height-top-5.html
background-color-height-top-6.html
background-color-left-4.html
background-color-left-5.html
background-color-left-6.html
background-color-left-10.html
background-color-left-width-4.html
background-color-left-width-5.html
background-color-left-width-6.html
background-color-top-4.html
background-color-top-5.html
background-color-top-6.html
background-color-top-10.html
background-color-top-height-4.html
background-color-top-height-5.html
background-color-top-height-6.html
background-color-width-4.html
background-color-width-5.html
background-color-width-6.html
background-color-width-10.html
background-color-width-left-4.html
background-color-width-left-5.html
background-color-width-left-6.html
background-image-base.html
background-image-height-4.html
background-image-height-5.html
background-image-height-6.html
background-image-height-10-ref.html
background-image-height-top-4.html
background-image-height-top-5.html
background-image-height-top-6.html
background-image-left-4.html
background-image-left-5.html
background-image-left-6.html
background-image-left-10-ref.html
background-image-left-width-4.html
background-image-left-width-5.html
background-image-left-width-6.html
background-image-tiling-ref.html
background-image-tiling.html
background-image-top-4.html
background-image-top-5.html
background-image-top-6.html
background-image-top-10-ref.html
background-image-top-height-4.html
background-image-top-height-5.html
background-image-top-height-6.html
background-image-width-4.html
background-image-width-5.html
background-image-width-6.html
background-image-width-10-ref.html
background-image-width-left-4.html
background-image-width-left-5.html
background-image-width-left-6.html
blue-1x1.png
blue-3x3.png
blue-5x5.png
blue-25x25.png
border-base-ref.html
border-height-4.html
border-height-5.html
border-height-6.html
border-height-10-ref.html
border-image-width-0.html
border-image-width-4.html
border-image-width-9.html
border-image-width-10.html
border-left-4.html
border-left-5.html
border-left-6.html
border-left-10-ref.html
border-top-4.html
border-top-5.html
border-top-6.html
border-top-10-ref.html
border-width-4.html
border-width-5.html
border-width-6.html
border-width-10-ref.html
check-image-blue-ref.html
check-image-blue.html
check-image-ref.html
check-image.html
collapsed-border-height-4.html
collapsed-border-height-5.html
collapsed-border-height-6.html
collapsed-border-left-4.html
collapsed-border-left-5.html
collapsed-border-left-6.html
collapsed-border-top-4.html
collapsed-border-top-5.html
collapsed-border-top-6.html
collapsed-border-width-4.html
collapsed-border-width-5.html
collapsed-border-width-6.html
corner-bl.png
corner-br.png
corner-tl.png
corner-tr.png
green-1x1.png
green-3x3.png
green-5x5.png
green-25x25.png
green-circle-with-blue-border.png
iframe-1-ref.html
iframe-1.html
image-base-ref.html
image-height-4.html
image-height-5.html
image-height-6.html
image-height-10-ref.html
image-height-top-4.html
image-height-top-5.html
image-height-top-6.html
image-high-quality-scaling-1-ref.html
image-high-quality-scaling-1.html
image-left-4.html
image-left-5.html
image-left-6.html
image-left-10-ref.html
image-left-width-4.html
image-left-width-5.html
image-left-width-6.html
image-top-4.html
image-top-5.html
image-top-6.html
image-top-10-ref.html
image-top-height-4.html
image-top-height-5.html
image-top-height-6.html
image-width-4.html
image-width-5.html
image-width-6.html
image-width-10-ref.html
image-width-left-4.html
image-width-left-5.html
image-width-left-6.html
lime-25x25.png
offscreen-0-ref.html
offscreen-10-ref.html
offscreen-background-color-pos-4.html
offscreen-background-color-pos-5.html
offscreen-background-color-pos-6.html
offscreen-background-color-size-4.html
offscreen-background-color-size-5.html
offscreen-background-color-size-6.html
offscreen-image-pos-4.html
offscreen-image-pos-5.html
offscreen-image-pos-6.html
offscreen-image-size-4.html
offscreen-image-size-5.html
offscreen-image-size-6.html
random-10x10.png
reftest.list Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert 2018-08-09 20:10:21 +00:00
rounded-background-color-base-ref.html
rounded-background-color-height-4.html
rounded-background-color-height-5.html
rounded-background-color-height-6.html
rounded-background-color-height-10-ref.html
rounded-background-color-height-top-4.html
rounded-background-color-height-top-5.html
rounded-background-color-height-top-6.html
rounded-background-color-left-4.html
rounded-background-color-left-5.html
rounded-background-color-left-6.html
rounded-background-color-left-10-ref.html
rounded-background-color-left-width-4.html
rounded-background-color-left-width-5.html
rounded-background-color-left-width-6.html
rounded-background-color-top-4.html
rounded-background-color-top-5.html
rounded-background-color-top-6.html
rounded-background-color-top-10-ref.html
rounded-background-color-top-height-4.html
rounded-background-color-top-height-5.html
rounded-background-color-top-height-6.html
rounded-background-color-width-4.html
rounded-background-color-width-5.html
rounded-background-color-width-6.html
rounded-background-color-width-10-ref.html
rounded-background-color-width-left-4.html
rounded-background-color-width-left-5.html
rounded-background-color-width-left-6.html
viewport-units-rounding-1-frame.html
viewport-units-rounding-1-ref.html
viewport-units-rounding-1.html
viewport-units-rounding-2.html