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-8,0-454) == mq_print_height.xhtml mq_print-ref.xhtml # bug 1178697
|
2016-10-09 10:51:27 +03:00
|
|
|
== mq_print_deviceheight.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_width.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_minwidth.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_minheight.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_aspectratio.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_deviceaspectratio.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_devicewidth.xhtml mq_print-ref.xhtml
|
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-8,0-454) == mq_print_orientation.xhtml mq_print_orientation-ref.xhtml
|
|
|
|
fuzzy-if(Android,0-8,0-454) == mq_print_maxheight.xhtml mq_print-ref.xhtml
|
2016-10-09 10:51:27 +03:00
|
|
|
== mq_print_maxwidth.xhtml mq_print-ref.xhtml
|
2018-12-27 17:43:34 +03:00
|
|
|
== mq_overflow-block.html mq_overflow-block-ref.html
|
|
|
|
== mq_print_overflow-block.html mq_print_overflow-block-ref.html
|
|
|
|
== mq_overflow-block.svg mq_overflow-block-ref.svg
|
2018-12-22 22:41:33 +03:00
|
|
|
== mq_overflow-inline.html mq_overflow-inline-ref.html
|
|
|
|
== mq_print_overflow-inline.html mq_print_overflow-inline-ref.html
|
2008-12-07 21:00:43 +03:00
|
|
|
|
2016-10-09 10:51:27 +03:00
|
|
|
== mq_print_maxwidth_updown.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_maxheight_updown.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_minheight_updown.xhtml mq_print-ref.xhtml
|
|
|
|
== mq_print_minwidth_updown.xhtml mq_print-ref.xhtml
|
2018-07-24 10:50:47 +03:00
|
|
|
test-pref(ui.prefersReducedMotion,0) == mq_prefers_reduced_motion.html about:blank
|
|
|
|
test-pref(ui.prefersReducedMotion,1) == mq_prefers_reduced_motion.html greenbox.html
|
|
|
|
test-pref(ui.prefersReducedMotion,0) == mq_prefers_reduced_motion_no_preference.html greenbox.html
|
|
|
|
test-pref(ui.prefersReducedMotion,1) == mq_prefers_reduced_motion_no_preference.html about:blank
|
|
|
|
test-pref(ui.prefersReducedMotion,0) == mq_prefers_reduced_motion_reduce.html about:blank
|
|
|
|
test-pref(ui.prefersReducedMotion,1) == mq_prefers_reduced_motion_reduce.html greenbox.html
|
2018-07-25 01:36:19 +03:00
|
|
|
test-pref(privacy.resistFingerprinting,true) test-pref(ui.prefersReducedMotion,1) == mq_prefers_reduced_motion_reduce.html about:blank
|
2018-07-29 04:18:19 +03:00
|
|
|
test-pref(privacy.resistFingerprinting,true) == mq_prefers_reduced_motion_both.html greenbox.html
|
2019-02-15 23:40:35 +03:00
|
|
|
test-pref(ui.systemUsesDarkTheme,1) == mq_prefers_color_scheme.html greenbox.html
|
|
|
|
test-pref(privacy.resistFingerprinting,true) == mq_prefers_color_scheme_light.html greenbox.html
|
|
|
|
== mq_prefers_color_scheme_print.html greenbox-print.html
|
|
|
|
test-pref(ui.systemUsesDarkTheme,0) == mq_prefers_color_scheme_light.html greenbox.html
|
|
|
|
test-pref(ui.systemUsesDarkTheme,1) == mq_prefers_color_scheme_dark.html greenbox.html
|
|
|
|
test-pref(ui.systemUsesDarkTheme,2) == mq_prefers_color_scheme_no_preference.html greenbox.html
|