gecko-dev/layout/reftests/layers
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
..
component-alpha-enter-1-ref.html Add a reftest (bug 1409871, r=mstange) 2017-11-05 10:05:14 -06:00
component-alpha-enter-1.html Add a reftest (bug 1409871, r=mstange) 2017-11-05 10:05:14 -06:00
component-alpha-exit-1-ref.html
component-alpha-exit-1.html
fixed-pos-scrolled-clip-layerize.html
fixed-pos-scrolled-clip-opacity-inside-layerize.html
fixed-pos-scrolled-clip-opacity-layerize.html
forced-bg-color-outside-visible-region-ref.html
forced-bg-color-outside-visible-region.html
layerize-over-fixed-bg-1.html
mask-layer-transform-ref.html
mask-layer-transform.html
move-to-background-1-ref.html
move-to-background-1.html
opacity-background-1-ref.html Bug 1454653 - Do not skip transparent items in ContainerState::FindOpaqueBackgroundColorInLayer() r=mattwoodrow 2018-04-23 17:33:16 +02:00
opacity-background-1.html Bug 1454653 - Do not skip transparent items in ContainerState::FindOpaqueBackgroundColorInLayer() r=mattwoodrow 2018-04-23 17:33:16 +02:00
opacity-blending-ref.html
opacity-blending.html
pull-background-1.html
pull-background-2.html
pull-background-3.html
pull-background-4.html
pull-background-5.html
pull-background-6.html
pull-background-animated-position-1.html
pull-background-animated-position-2.html
pull-background-animated-position-3.html
pull-background-animated-position-4.html
pull-background-animated-position-5.html
pull-background-displayport-1.html
pull-background-displayport-2.html
pull-background-displayport-3.html
pull-background-displayport-4.html
pull-background-displayport-5.html
pull-background-displayport-6.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