gecko-dev/layout/reftests/css-blending
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
..
as-image
background-blend-mode-body-image-ref.html
background-blend-mode-body-image.html
background-blend-mode-body-transparent-image-ref.html
background-blend-mode-body-transparent-image.html
background-blending-alpha-ref.html
background-blending-alpha.html
background-blending-background-attachement-fixed-ref.html
background-blending-background-attachement-fixed-scroll-ref.html
background-blending-background-attachement-fixed-scroll.html
background-blending-background-attachement-fixed.html
background-blending-background-clip-content-box-ref.html
background-blending-background-clip-content-box.html
background-blending-background-clip-padding-box-ref.html
background-blending-background-clip-padding-box.html
background-blending-background-origin-border-box.html
background-blending-background-origin-content-box.html
background-blending-background-origin-ref.html
background-blending-background-position-percentage-ref.html
background-blending-background-position-percentage.html
background-blending-background-repeat-no-repeat-ref.html
background-blending-background-repeat-no-repeat.html
background-blending-background-size-contain.html
background-blending-background-size-cover.html
background-blending-background-size-percentage.html
background-blending-background-size-pixels.html
background-blending-background-size-ref.html
background-blending-color-burn-ref.svg
background-blending-color-burn.html
background-blending-color-dodge-ref.svg
background-blending-color-dodge.html
background-blending-color-ref.svg
background-blending-color.html
background-blending-darken-ref.svg
background-blending-darken.html
background-blending-difference-ref.svg
background-blending-difference.html
background-blending-exclusion-ref.svg
background-blending-exclusion.html
background-blending-gradient-color-ref.html
background-blending-gradient-color.html
background-blending-gradient-gradient-ref.html
background-blending-gradient-gradient.html
background-blending-gradient-image-ref.html
background-blending-gradient-image.html
background-blending-hard-light-ref.svg
background-blending-hard-light.html
background-blending-hue-ref.svg
background-blending-hue.html
background-blending-image-color-959674-ref.html
background-blending-image-color-959674.html
background-blending-image-color-gif-ref.html
background-blending-image-color-gif.html
background-blending-image-color-jpg.html
background-blending-image-color-png.html
background-blending-image-color-ref.html
background-blending-image-color-svg-as-data-uri.html
background-blending-image-color-svg.html
background-blending-image-color-transform3d.html
background-blending-image-gradient.html
background-blending-image-image-ref.html
background-blending-image-image.html
background-blending-isolation-parent-child-color.html
background-blending-isolation-parent-child-image.html
background-blending-isolation-parent-child-ref.html
background-blending-isolation-ref.html
background-blending-isolation.html
background-blending-lighten-ref.svg
background-blending-lighten.html
background-blending-list-repeat-ref.html
background-blending-list-repeat.html
background-blending-luminosity-ref.svg
background-blending-luminosity.html
background-blending-moz-element-ref.html
background-blending-moz-element.html
background-blending-multiple-images-ref.html
background-blending-multiple-images.html
background-blending-multiply-ref.svg
background-blending-multiply.html
background-blending-normal-ref.svg
background-blending-normal.html
background-blending-overlay-ref.svg
background-blending-overlay.html
background-blending-saturation-ref.svg
background-blending-saturation.html
background-blending-screen-ref.svg
background-blending-screen.html
background-blending-soft-light-ref.svg
background-blending-soft-light.html
blend-canvas-ref.html
blend-canvas.html
blend-constant-background-color-ref.html
blend-constant-background-color.html
blend-difference-stacking-ref.html
blend-difference-stacking.html
blend-gradient-background-color-ref.html
blend-gradient-background-color.html
blend-image-ref.html
blend-image.html
blend-isolation-ref.html
blend-isolation.html
blend-modes.css
bug1281593-ref.html
bug1281593.html
clipped-mixblendmode-containing-unclipped-stuff-ref.html
clipped-mixblendmode-containing-unclipped-stuff.html
clipped-opacity-containing-unclipped-mixblendmode-ref.html
clipped-opacity-containing-unclipped-mixblendmode.html
mix-blend-mode-952051-ref.html
mix-blend-mode-952051.html
mix-blend-mode-and-filter-ref.html
mix-blend-mode-and-filter-ref.svg
mix-blend-mode-and-filter.html
mix-blend-mode-and-filter.svg
mix-blend-mode-child-of-blended-has-opacity-ref.html
mix-blend-mode-child-of-blended-has-opacity.html
mix-blend-mode-culling-1207041-ref.html
mix-blend-mode-culling-1207041.html
mix-blend-mode-dest-alpha-1135271-ref.html
mix-blend-mode-dest-alpha-1135271.html
mix-blend-mode-nested-976533-ref.html
mix-blend-mode-nested-976533.html
mix-blend-mode-soft-light-ref.html
mix-blend-mode-soft-light.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