gecko-dev/layout/reftests/reftest-sanity
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
..
prefix
647192-1-ref.html
647192-1.html
656041-1-ref.html
656041-1.html
async-scroll-1-ref.html
async-scroll-1a.html
async-scroll-1b.html
async-zoom-1-ref.html
async-zoom-1.html
async-zoom-2-ref.html
async-zoom-2.html Bug 1310237 - Change skip-if(!asyncZoom) tests to skip-if(!Android) with zooming enabled. Also update the fuzziness checks to match current Android reftest results. r=tnikkel 2016-10-19 16:16:07 -04:00
bg.png
blank.html
corners-1-ref.html
corners-1.html
corners-2-ref.html
corners-2.html
corners-3-ref.html
corners-3.html
corners-4-ref.html
corners-4.html
default-preferences-include.list
default-preferences-tests.list
default.html
div-ref.html
div.html
filter-1-ref.xhtml
filter-1.xhtml
filter-2-ref.xhtml
filter-2.xhtml
font-default.html
font-download.html
font-sans-serif.html
font-serif.html
font-size-16.html
font-size-24.html
fuzzy-ref.html
fuzzy.html
green.html
html-vs-xhtml-by-extension.html
html-vs-xhtml-by-extension.xhtml
invalidation.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
needs-focus.html
no-root.html
page-height-2.1in.html Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
page-height-2in.html Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
page-height-forcebreak.html Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
page-height-nobreak.html Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
page-width-3.9in.html Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
page-width-4.1in.html Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
page-width-4in.html Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
page-width-auto.html Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
prefix-suffix.html
red.html
reftest-assigned-layer-fail-1.html
reftest-assigned-layer-fail-2.html
reftest-assigned-layer-fail-3.html
reftest-assigned-layer-fail-4.html
reftest-assigned-layer-pass.html
reftest-no-paint-ref.html
reftest-no-paint.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
reftest-opaque-layer-fail.html
reftest-opaque-layer-pass.html
reftest-opaque-layer-wait-fail.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
reftest-opaque-layer-wait-pass.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
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
scripttest-fail.html
scripttest-pass-fail.html
scripttest-pass.html
scripttests.list
test-async-ref.html
test-async-ref.xul
test-async.html
test-async.xul
test-bg-attachment-fixed-ref.html
test-bg-attachment-fixed.html
test-displayport-2.html
test-displayport-bg.html
test-displayport-ref.html
test-pos-fixed-ref.html
test-pos-fixed-transform-ref.html
test-pos-fixed-transform.html
test-pos-fixed.html
test-zoom-ref.html
test-zoom.html
too-fuzzy.html
urlprefixtests-include.list
urlprefixtests.list
zoom-invalidation-ref.html
zoom-invalidation.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00