gecko-dev/dom/plugins/test/reftest
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
..
border-padding-1-ref.html
border-padding-1.html
border-padding-2-ref.html
border-padding-2.html
border-padding-3-ref.html
border-padding-3.html
div-alpha-opacity.html
div-alpha-zindex.html
div-sanity.html
plugin-alpha-opacity.html
plugin-alpha-zindex.html
plugin-background-1-step.html
plugin-background-2-step.html
plugin-background-5-step.html
plugin-background-10-step.html
plugin-background-ref.html
plugin-background.css
plugin-background.html
plugin-background.js
plugin-busy-alpha-zindex.html
plugin-canvas-alpha-zindex.html
plugin-sanity.html
plugin-transform-1-ref.html
plugin-transform-1.html
plugin-transform-2-ref.html
plugin-transform-2.html
plugin-transform-alpha-zindex.html
pluginproblemui-direction-1-ref.html
pluginproblemui-direction-1.html
pluginproblemui-direction-2-ref.html
pluginproblemui-direction-2.html
reftest.list
shrink-1-ref.html
shrink-1.html
update-1-ref.html
update-1.html
utils.js
windowless-clipping-1-ref.html
windowless-clipping-1.html
windowless-layers-ref.html
windowless-layers.html