gecko-dev/layout/reftests/css-mediaqueries
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
..
greenbox.html Bug 1365045 - Reftests for prefers-reduced-motion. r=heycam 2018-07-24 16:50:47 +09:00
mq_prefers_reduced_motion_both.html Bug 1479239: prefers-reduced-motion should be sensible re. unsupported platforms / resistFingerprinting. r=hiro 2018-07-29 04:46:34 +02:00
mq_prefers_reduced_motion_no_preference.html Bug 1365045 - Reftests for prefers-reduced-motion. r=heycam 2018-07-24 16:50:47 +09:00
mq_prefers_reduced_motion_reduce.html Bug 1365045 - Reftests for prefers-reduced-motion. r=heycam 2018-07-24 16:50:47 +09:00
mq_prefers_reduced_motion.html Bug 1365045 - Reftests for prefers-reduced-motion. r=heycam 2018-07-24 16:50:47 +09:00
mq_print_aspectratio.xhtml
mq_print_deviceaspectratio.xhtml
mq_print_deviceheight.xhtml
mq_print_devicewidth.xhtml
mq_print_height.xhtml
mq_print_maxheight_updown.xhtml
mq_print_maxheight.xhtml
mq_print_maxwidth_updown.xhtml
mq_print_maxwidth.xhtml
mq_print_minheight_updown.xhtml
mq_print_minheight.xhtml
mq_print_minwidth_updown.xhtml
mq_print_minwidth.xhtml
mq_print_orientation-ref.xhtml
mq_print_orientation.xhtml
mq_print_width.xhtml
mq_print-ref.xhtml
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