gecko-dev/layout/reftests/text-svgglyphs
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
..
resources
clip-ref.html
clip.html
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
svg-glyph-basic-ref.svg
svg-glyph-basic.svg
svg-glyph-cachedopacity-ref.svg
svg-glyph-cachedopacity.svg
svg-glyph-direct-ref.svg
svg-glyph-direct.svg
svg-glyph-extents-ref.html
svg-glyph-extents.html
svg-glyph-html-ref.svg
svg-glyph-html.html
svg-glyph-invalid-ids-ref.svg
svg-glyph-invalid-ids.svg
svg-glyph-invalid-ref.html
svg-glyph-invalid.html
svg-glyph-mask-ref.svg
svg-glyph-mask.svg
svg-glyph-objectfill-solid-ref.svg
svg-glyph-objectfill-solid.svg
svg-glyph-objectgradient-ref.svg
svg-glyph-objectgradient-zoom-ref.svg
svg-glyph-objectgradient-zoom.svg
svg-glyph-objectgradient.svg
svg-glyph-objectopacity-ref.svg
svg-glyph-objectopacity.svg
svg-glyph-objectopacity2-ref.svg
svg-glyph-objectopacity2.svg
svg-glyph-objectpattern-ref.svg
svg-glyph-objectpattern.svg
svg-glyph-objectstroke-solid-ref.svg
svg-glyph-objectstroke-solid.svg
svg-glyph-objectvalue-ref.svg
svg-glyph-objectvalue.svg
svg-glyph-paint-server-ref.svg
svg-glyph-paint-server.svg
svg-glyph-paintnone-ref.svg
svg-glyph-paintnone.svg
svg-glyph-positioning-ref.svg
svg-glyph-positioning.svg
svg-glyph-transform-ref.svg
svg-glyph-transform.svg