gecko-dev/layout/reftests/ogg-video
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
..
444-1-ref.html
444-1.html
aspect-ratio-1-ref.html
aspect-ratio-1a.xhtml
aspect-ratio-1b.xhtml
aspect-ratio-2-ref.html
aspect-ratio-2a.xhtml
aspect-ratio-2b.xhtml
aspect-ratio-3-ref.xhtml
aspect-ratio-3a.xhtml
aspect-ratio-3b.xhtml
basic-1-ref.html
basic-1.xhtml
black29x19offset.ogv
black100x100-aspect3to2.ogv
black140x100.ogv
blue140x100.png
blue250x200.png
canvas-1a.xhtml
canvas-1b.xhtml
clipping-1-ref.html
clipping-1a.html
empty-1-ref.html
empty-1a.html
empty-1b.html
encoded-aspect-ratio-1-ref.html
encoded-aspect-ratio-1.html
green70x30.png
object-aspect-ratio-1a.xhtml
object-aspect-ratio-1b.xhtml
object-aspect-ratio-2a.xhtml
object-aspect-ratio-2b.xhtml
offset-1-ref.html
offset-1.xhtml
poster-1.html
poster-2.html
poster-3.html
poster-4.html
poster-5.html
poster-6.html
poster-7.html
poster-8.html
poster-10.html
poster-11.html
poster-12.html
poster-13.html
poster-15.html
poster-ref-black140x100.html
poster-ref-blue125x100.html
poster-ref-blue140x100.html
poster-ref-blue250x200.html
poster-ref-blue400x300.html
poster-ref-green70x30.html
poster-ref-red140x100.html
red140x100.png
red160x120.png
reftest.list
seek420.ogv
seek444.ogv
zoomed-1-ref.html
zoomed-1.xhtml