gecko-dev/layout/reftests/first-line
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
..
287088-1-ref.html
287088-1.html
287088-2-ref.html
287088-2.html
403177-1-ref.html
403177-1.html
469227-2-ref.html
469227-2.html
469227-3-ref.html
469227-3.html
basic-1.html
basic-ref.html
border-not-apply-ref.html
border-not-apply.html
caption-insert-in-first-line-1.html
caption-insert-in-first-line-2.html
caption-insert-in-first-line-ref.html
first-line-in-columnset-1-ref.html
first-line-in-columnset-1.html
font-styles-nooverflow.html
font-styles-ref.html
font-styles.html
ib-split-1-ref.html
ib-split-1.html
insertion-in-first-line-1.html
insertion-in-first-line-2.html
insertion-in-first-line-3.html
insertion-in-first-line-4.html
insertion-in-first-line-5.html
insertion-in-first-line-6.html
insertion-in-first-line-7.html
insertion-in-first-line-8.html
insertion-in-first-line-9.html
insertion-in-first-line-10.html
insertion-in-first-line-11.html
insertion-in-first-line-12.html
insertion-in-first-line-ref.html
out-of-flow-1-ref.html
out-of-flow-1a.html
out-of-flow-1b.html
out-of-flow-1c.html
out-of-flow-1d.html
parent-style-1-ref.html
parent-style-1.html
parent-style-2-ref.html
parent-style-2.html
parent-style-3-ref.html
parent-style-3.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
restyle-inside-first-line-ref.html
restyle-inside-first-line.html
stress-1.html
stress-2-ref.html
stress-2.html
stress-3.html
stress-4.html
stress-5.html
stress-6.html
stress-7.html
stress-8-ref.html
stress-8.html
stress-9-ref.html
stress-9.html
stress-10.html
stress-11-ref.xhtml
stress-11.xhtml