gecko-dev/layout/reftests/text-transform/reftest.list
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

40 lines
3.1 KiB
Plaintext

== capitalize-1.html capitalize-ref.html
== capitalize-2.html capitalize-ref.html
== capitalize-3.html capitalize-3-ref.html
== capitalize-4.html capitalize-4-ref.html
== capitalize-5.html capitalize-5-ref.html
== capitalize-6.html capitalize-6-ref.html
== capitalize-7.html capitalize-7-ref.html
== capitalize-7a.html capitalize-7-ref.html
== capitalize-8.html capitalize-8-ref.html
== lowercase-1.html lowercase-ref.html
== lowercase-sigma-1.html lowercase-sigma-1-ref.html
random-if(winWidget) == small-caps-1.html small-caps-1-ref.html # fails if default font supports 'smcp'
== fake-small-caps-1.html fake-small-caps-1-ref.html
== opentype-small-caps-1.html opentype-small-caps-1-ref.html
!= opentype-small-caps-1.html opentype-small-caps-1-notref.html
== graphite-small-caps-1.html graphite-small-caps-1-ref.html
!= graphite-small-caps-1.html graphite-small-caps-1-notref.html
== uppercase-1.html uppercase-ref.html
== uppercase-szlig-1.html uppercase-szlig-ref.html
# these use DejaVu Sans via @font-face for consistency of results
fuzzy-if(cocoaWidget,0-250,0-15) == all-upper.html all-upper-ref.html # bug 1140292
fuzzy-if(cocoaWidget,0-250,0-15) fuzzy-if(skiaContent,0-1,0-1800) == all-lower.html all-lower-ref.html # bug 1140292
fuzzy-if(skiaContent,0-1,0-80) == all-title.html all-title-ref.html
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == smtp-upper.html smtp-upper-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == smtp-lower.html smtp-lower-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == smtp-title.html smtp-title-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == turkish-casing-1.html turkish-casing-1-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) != small-caps-turkish-1.html small-caps-turkish-1-notref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == greek-uppercase-1a.html greek-uppercase-1-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == greek-uppercase-1b.html greek-uppercase-1-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == greek-uppercase-2.html greek-uppercase-2-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == greek-uppercase-3.html greek-uppercase-3-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == greek-small-caps-1.html greek-small-caps-1-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == irish-uppercase-1.html irish-uppercase-1-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == irish-lowercase-1a.html irish-lowercase-1-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == irish-lowercase-1b.html irish-lowercase-1-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == fullwidth-1.html fullwidth-1-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == fullwidth-2.html fullwidth-2-ref.html # Bug 1392106
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == fullwidth-all.html fullwidth-all-ref.html # Bug 1392106