gecko-dev/layout/reftests/svg/image
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
..
blueRect10x10-viewBox-animPAR.svg
blueRect10x10-viewBox.svg
blueRect10x10.png
blueRect10x10.svg
image-fill-01.svg
image-filter-01-ref.svg
image-filter-01.svg
image-load-01.svg
image-opacity-01-ref.svg
image-opacity-01.svg
image-opacity-02-ref.svg
image-opacity-02.svg
image-preserveAspectRatio-01-raster.svg
image-preserveAspectRatio-01-ref.svg
image-preserveAspectRatio-01-svg.svg
image-preserveAspectRatio-02-raster.svg
image-preserveAspectRatio-02-ref.svg
image-preserveAspectRatio-02-svg.svg
image-preserveAspectRatio-03-ref.svg
image-preserveAspectRatio-03.svg
image-preserveAspectRatio-04-ref.svg
image-preserveAspectRatio-04.svg
image-preserveAspectRatio-05.svg
image-rotate-01-ref.svg
image-rotate-01.svg
image-rotate-02-ref.svg
image-rotate-02a.svg
image-rotate-02b.svg
image-scaling-01.svg
image-scaling-02.svg
image-svg-inline-01.html
image-svg-inline-sprite-zoom-in-01-ref.html
image-svg-inline-sprite-zoom-in-01a.html
image-svg-inline-sprite-zoom-in-01b.html
image-svg-inline-sprite-zoom-out-01-ref.html
image-svg-inline-sprite-zoom-out-01a.html
image-svg-inline-sprite-zoom-out-01b.html
image-svg-inline-zoom-in-01a.html
image-svg-inline-zoom-in-01b.html
image-svg-inline-zoom-in-01c.html
image-svg-inline-zoom-in-01d.html
image-svg-inline-zoom-out-01a.html
image-svg-inline-zoom-out-01b.html
image-svg-inline-zoom-out-01c.html
image-svg-inline-zoom-out-01d.html
image-translate-01-ref.svg
image-translate-01.svg
image-x-01-ref.svg
image-x-01.svg
image-xy-01-ref.svg
image-xy-01.svg
image-y-01-ref.svg
image-y-01.svg
image-zoom-02-ref.svg
image-zoom-02.svg
imported-image-01.svg
imported-image-02.svg
imported-image-ref.svg
lime-no-dimensions.svg
lime100x100.svg
reftest.list
sprite.png
sprite.svg
util.js