mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
1e88f0f003
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 |
||
---|---|---|
.. | ||
997709-2-ref.html | ||
997709-2.html | ||
1246836-ref.html | ||
1246836.html | ||
boguskids-ref.html | ||
boguskids.html | ||
dynamic-boguskids.html | ||
dynamic-text-indent-1-ref.html | ||
dynamic-text-indent-1.html | ||
dynamic-text-overflow-1-ref.html | ||
dynamic-text-overflow-1.html | ||
focusring-1-ref.html | ||
focusring-1.html | ||
focusring-2-ref.html | ||
focusring-2.html | ||
focusring-3-ref.html | ||
focusring-3.html | ||
listbox-zero-row-initial-ref.html | ||
listbox-zero-row-initial.html | ||
multiple-ref.html | ||
multiple.html | ||
option-children-ref.html | ||
option-children.html | ||
out-of-bounds-selectedindex-ref.html | ||
out-of-bounds-selectedindex.html | ||
padding-button-placement-ref.html | ||
padding-button-placement.html | ||
reftest.list | ||
vertical-centering-ref.html | ||
vertical-centering.html |