gecko-dev/layout/reftests/generated-content
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
..
attr-whitespace-ref.html
attr-whitespace.xhtml
before-style-sharing-ref.html
before-style-sharing.html
display-types-01-ref.html
display-types-01.html
dynamic-attr-01-ref.html
dynamic-attr-01.html
dynamic-button-01-ref.html
dynamic-button-01a.html
dynamic-button-01b.html
dynamic-content-ref.html
dynamic-content.html
dynamic-fieldset-01-ref.html
dynamic-fieldset-01a.html
dynamic-fieldset-01b.html
dynamic-generated-content-inherit-001.html
dynamic-restyle-01-ref.html
dynamic-restyle-01.html
dynamic-table-cell-01-ref.html
dynamic-table-cell-01a.html
dynamic-table-cell-01b.html
dynamic-table-cell-indent-ref.html
dynamic-table-cell-indent.html
floated-01-ref.html
floated-01.html
generated-content-inherit-001-ref.html
generated-content-inherit-001.html
images-01-ref.html
images-01.html
positioned-01-ref.html
positioned-01.html
quotes-001-ref.xml
quotes-001.xml
reftest.list
square-outline-32x32.png
table-ignoring-whitespace-01-ref.html
table-ignoring-whitespace-01.html
table-parts-01-ref.html
table-parts-01.html
transitive-style-invalidation-ref.html
transitive-style-invalidation.html