gecko-dev/layout/reftests/font-matching
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
..
1367860-1.htm Bug 1367860 (part 5) - Add testcases. r=dbaron 2017-08-18 14:46:45 -07:00
1367860-2.htm Bug 1367860 (part 5) - Add testcases. r=dbaron 2017-08-18 14:46:45 -07:00
1367860-3.htm Bug 1367860 (part 5) - Add testcases. r=dbaron 2017-08-18 14:46:45 -07:00
1367860-ref.htm Bug 1367860 (part 5) - Add testcases. r=dbaron 2017-08-18 14:46:45 -07:00
1394311-ref.htm Bug 1394762: Add testcase for Bug 1394311. r=manishearth 2017-08-28 16:57:38 -07:00
1394311.htm Bug 1394762: Add testcase for Bug 1394311. r=manishearth 2017-08-28 16:57:38 -07:00
1458158-1-ref.html Bug 1458158 - Testcase for rendering Arabic characters when styled with an extra-bold weight of Arial. r=jwatt 2018-05-01 15:55:06 +01:00
1458158-1.html Bug 1458158 - Testcase for rendering Arabic characters when styled with an extra-bold weight of Arial. r=jwatt 2018-05-01 15:55:06 +01:00
CSS21-t1502-no-inherited-font-family-ref.xhtml Update links pointing to my personal website (http -> https). No bug. 2016-10-13 11:41:51 -07:00
CSS21-t1502-no-inherited-font-family.xhtml Update links pointing to my personal website (http -> https). No bug. 2016-10-13 11:41:51 -07:00
apple-symbols-1-notref.html
apple-symbols-1.html
arial-arabic-ref.html
arial-arabic.html
arial-variations-1-ref.html
arial-variations-1.html
arial-variations-2-ref.html
arial-variations-2.html
arial-variations-3-ref.html
arial-variations-3.html
arial-variations-4-ref.html
arial-variations-4.html
arial-variations-5-ref.html
arial-variations-5.html
arial-variations-6-ref.html
arial-variations-6.html
arialunicode-bold.html
arialunicode-bolditalic.html
arialunicode-italic.html
arialunicode-oblique.html
arialunicode.html
bold-system-fallback-1-notref.html
bold-system-fallback-1.html
bold-system-fallback-2-notref.html
bold-system-fallback-2.html
defaultfont-bold.html
defaultfont-bolditalic.html
defaultfont-italic.html
defaultfont-oblique.html
defaultfont.html
defaultjapanese-bold.html
defaultjapanese-bolditalic.html
defaultjapanese-italic.html
defaultjapanese-oblique.html
defaultjapanese.html
descriptor-ranges-ref.html Bug 1466332 - Add a reftest version of the @font-face descriptor matching tests from WPT's at-font-face-font-matching.html, as the WPT version does not currently run reliably. r=jwatt 2018-06-04 09:45:50 +01:00
descriptor-ranges.html Bug 1466332 - Add a reftest version of the @font-face descriptor matching tests from WPT's at-font-face-font-matching.html, as the WPT version does not currently run reliably. r=jwatt 2018-06-04 09:45:50 +01:00
descriptor-ranges.js Bug 1466332 - Add a reftest version of the @font-face descriptor matching tests from WPT's at-font-face-font-matching.html, as the WPT version does not currently run reliably. r=jwatt 2018-06-04 09:45:50 +01:00
emoji-fallback-1-ref.html Bug 1358240 - Replace EmojiOne with Twemoji, r=jfkthame, timdream 2018-03-08 18:23:19 -06:00
emoji-fallback-1.html Bug 1032671 - Part 5. Add reftest for emoji. r=jfkthame 2017-11-18 20:15:05 +09:00
emoji-fallback-2-ref.html Bug 1032671 - Part 5. Add reftest for emoji. r=jfkthame 2017-11-18 20:15:05 +09:00
emoji-fallback-2.html Bug 1032671 - Part 5. Add reftest for emoji. r=jfkthame 2017-11-18 20:15:05 +09:00
emoji-fallback-3-ref.html Bug 1358240 - Replace EmojiOne with Twemoji, r=jfkthame, timdream 2018-03-08 18:23:19 -06:00
emoji-fallback-3.html Bug 1032671 - Part 5. Add reftest for emoji. r=jfkthame 2017-11-18 20:15:05 +09:00
familyname-escapedidents-ref.html
familyname-escapedidents.html
font-shorthand-stretch-1.html
font-stretch-1-ref.html
font-stretch-1.html
font-synthesis-1-ref.html
font-synthesis-1.html
font-synthesis-2-ref.html
font-synthesis-2.html
impact-bold.html
impact-bolditalic.html
impact-italic.html
impact-oblique.html
impact.html
italic-oblique-1.html
italic-oblique-2.html
italic-oblique-3.html
italic-oblique-4.html
italic-oblique-5.html
italic-oblique-6.html
italic-oblique-7.html
italic-oblique-8.html
italic-oblique-9.html
italic-oblique-kinnari-ref.html
italic-oblique-kinnari.html
italic-oblique-ref.html
legacy-family-names-1-ref.html Bug 835204 - Accept styled font-family names as used in the legacy GDI model, for compatibility with content that assumes GDI-style font naming. r=heycam 2017-08-01 11:25:35 +01:00
legacy-family-names-1.html Bug 835204 - Accept styled font-family names as used in the legacy GDI model, for compatibility with content that assumes GDI-style font naming. r=heycam 2017-08-01 11:25:35 +01:00
legacy-family-names-2-ref.html Bug 835204 - Accept styled font-family names as used in the legacy GDI model, for compatibility with content that assumes GDI-style font naming. r=heycam 2017-08-01 11:25:35 +01:00
legacy-family-names-2.html Bug 835204 - Accept styled font-family names as used in the legacy GDI model, for compatibility with content that assumes GDI-style font naming. r=heycam 2017-08-01 11:25:35 +01:00
localized-family-names-001-ref.html
localized-family-names-001.html
localized-family-names-002-ref.html
localized-family-names-002.html
localized-family-names-003-ref.html
localized-family-names-003.html
localized-family-names-004-ref.html
localized-family-names-004.html
lucidaconsole-bold.html
lucidaconsole-bolditalic.html
lucidaconsole-italic.html
lucidaconsole-oblique.html
lucidaconsole.html
normalmedium-notref.html
normalmedium-ref.html
normalmedium.html
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
simple-oblique-ref.html
simple-oblique.html
stretchmapping-35-ref.html
stretchmapping-35.html
stretchmapping-137-ref.html
stretchmapping-137.html
stretchmapping-all-ref.html
stretchmapping-all.html
stretchmapping-reverse-ref.html
stretchmapping-reverse.html
synthetic-bold-1-ref.html
synthetic-bold-1.html
synthetic-bold-2-ref.html
synthetic-bold-2.html
synthetic-style-1-notref.html
synthetic-style-1.html
synthetic-style-2-notref.html
synthetic-style-2.html
syntheticbold-rotated-ref.html
syntheticbold-rotated.html
system-generic-fallback-1-ref.html
system-generic-fallback-1.html
system-generic-fallback-2-ref.html
system-generic-fallback-2.html
system-generic-fallback-3-ref.html
system-generic-fallback-3.html
system-generic-fallback-4-ref.html
system-generic-fallback-4.html
system-generic-fallback-ja.html
system-generic-fallback-ko.html
system-generic-fallback-zh-cn.html
system-generic-fallback-zh-tw.html
weightmapping-7-ref.html
weightmapping-7.html
weightmapping-12-ref.html
weightmapping-12.html
weightmapping-25-ref.html
weightmapping-25.html
weightmapping-45-ref.html
weightmapping-45.html
weightmapping-458-ref.html
weightmapping-458.html
weightmapping-478-ref.html
weightmapping-478.html
weightmapping-12579-ref.html
weightmapping-12579.html