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 23:10:21 +03:00
fuzzy-if(skiaContent,0-1,0-10) fuzzy-if(Android,0-2,0-10) == text-control-baseline-1.html text-control-baseline-1-ref.html
fuzzy-if(cocoaWidget,0-18,0-68) fuzzy-if(Android,0-52,0-64) fuzzy-if(winWidget,0-88,0-624) == display-block-baselines-1.html display-block-baselines-1-ref.html # anti-aliasing issues
2017-05-10 23:11:36 +03:00
== display-block-baselines-2.html display-block-baselines-2-ref.html
2017-06-01 02:44:38 +03:00
== display-block-baselines-3.html display-block-baselines-3-ref.html
2017-07-13 07:15:37 +03:00
== display-block-baselines-4.html display-block-baselines-4-ref.html
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 23:10:21 +03:00
fuzzy-if(Android,0-4,0-8) fuzzy-if(skiaContent,0-7,0-2) == display-block-baselines-5.html display-block-baselines-5-ref.html
2021-02-11 00:05:59 +03:00
fuzzy(0-1,0-3) fuzzy-if(!nativeThemePref,0-1,0-20) fails-if(cocoaWidget&&nativeThemePref) == overflow.html overflow-ref.html # bug 1620120 for natively themed cocoa, fuzzyness in the arrow for !native
2011-12-08 21:53:12 +04:00
2013-06-14 17:57:38 +04:00
# button element
include button/reftest.list
2013-06-14 18:24:49 +04:00
# legend element
include legend/reftest.list
2013-10-23 02:46:40 +04:00
# fieldset element
include fieldset/reftest.list
2010-02-26 21:47:38 +03:00
# placeholder
include placeholder/reftest.list
2010-04-22 15:03:00 +04:00
2010-05-12 11:17:07 +04:00
# input
include input/reftest.list
2012-08-27 23:46:23 +04:00
# meter element
include meter/reftest.list
2010-04-22 15:03:00 +04:00
# output element
include output/reftest.list
2011-05-10 16:59:07 +04:00
# progress element
include progress/reftest.list
2012-08-28 08:21:11 +04:00
2013-06-14 17:49:20 +04:00
# select element
include select/reftest.list
2013-06-14 17:38:40 +04:00
# textarea element
include textarea/reftest.list
2013-06-14 18:20:28 +04:00
# textbox element
include textbox/reftest.list