Bug 1436997 - Add reftests to check that we accept the *-variations format strings iff the variation-font pref is enabled. r=jwatt
authorJonathan Kew <jkew@mozilla.com>
Thu, 15 Feb 2018 10:56:43 +0000
changeset 403924 4697cdd9969f81a4da170f6b89ecbe549b06f6ca
parent 403923 12b89457c62313feacba9ed2f0cd55af8dd58a36
child 403925 bdeae8c5eeb9f1d5c75e1677dd7825e7adb9e291
push id99886
push userjkew@mozilla.com
push dateThu, 15 Feb 2018 10:56:58 +0000
treeherdermozilla-inbound@4697cdd9969f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt
bugs1436997
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1436997 - Add reftests to check that we accept the *-variations format strings iff the variation-font pref is enabled. r=jwatt
layout/reftests/font-face/reftest.list
layout/reftests/font-face/variation-format-hint-1A-ref.html
layout/reftests/font-face/variation-format-hint-1B-otf-ref.html
layout/reftests/font-face/variation-format-hint-1B-ttf-ref.html
layout/reftests/font-face/variation-format-hint-1B-woff-ref.html
layout/reftests/font-face/variation-format-hint-1B-woff2-ref.html
layout/reftests/font-face/variation-format-hint-1a.html
layout/reftests/font-face/variation-format-hint-1b.html
layout/reftests/font-face/variation-format-hint-1c.html
layout/reftests/font-face/variation-format-hint-1d.html
layout/reftests/fonts/markB.woff2
--- a/layout/reftests/font-face/reftest.list
+++ b/layout/reftests/font-face/reftest.list
@@ -187,8 +187,21 @@ fuzzy-if(OSX==1010,3,5) HTTP(..) == font
 == meiryo-en-italic.html meiryo-ja-italic.html
 == meiryo-en-oblique.html meiryo-ja-oblique.html
 == meiryo-en-bolditalic.html meiryo-ja-bolditalic.html
 != meiryo-en-bold.html meiryo-en.html
 != meiryo-en-italic.html meiryo-en.html
 != meiryo-en-oblique.html meiryo-en.html
 != meiryo-en-bolditalic.html meiryo-en.html
 != meiryo-en-bolditalic.html meiryo-en-bold.html
+
+# test support of variation-font format hints
+default-preferences pref(layout.css.font-variations.enabled,false)
+== variation-format-hint-1a.html variation-format-hint-1A-ref.html
+== variation-format-hint-1b.html variation-format-hint-1A-ref.html
+== variation-format-hint-1c.html variation-format-hint-1A-ref.html
+== variation-format-hint-1d.html variation-format-hint-1A-ref.html
+default-preferences pref(layout.css.font-variations.enabled,true)
+== variation-format-hint-1a.html variation-format-hint-1B-ttf-ref.html
+== variation-format-hint-1b.html variation-format-hint-1B-otf-ref.html
+== variation-format-hint-1c.html variation-format-hint-1B-woff-ref.html
+== variation-format-hint-1d.html variation-format-hint-1B-woff2-ref.html
+default-preferences
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1A-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  src: url(../fonts/markA.woff);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1B-otf-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  src: url(../fonts/markB.otf);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1B-ttf-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  src: url(../fonts/markB.ttf);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1B-woff-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  src: url(../fonts/markB.woff);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1B-woff2-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  src: url(../fonts/markB.woff2);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1a.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  /* this should load markB if variation font support is enabled,
+     and markA otherwise */
+  src: url(../fonts/markB.ttf) format("truetype-variations"),
+       url(../fonts/markA.woff);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1b.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  /* this should load markB if variation font support is enabled,
+     and markA otherwise */
+  src: url(../fonts/markB.otf) format("opentype-variations"),
+       url(../fonts/markA.woff);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1c.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  /* this should load markB if variation font support is enabled,
+     and markA otherwise */
+  src: url(../fonts/markB.woff) format("woff-variations"),
+       url(../fonts/markA.woff);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-face/variation-format-hint-1d.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+
+<style>
+@font-face {
+  font-family: test;
+  /* this should load markB if variation font support is enabled,
+     and markA otherwise */
+  src: url(../fonts/markB.woff2) format("woff2-variations"),
+       url(../fonts/markA.woff);
+}
+div {
+  font-family: test, serif;
+  font-size: 50px;
+  line-height: 2em;
+}
+</style>
+
+<div>
+ABC
+</div>
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ccb70a965770aa427473c89b14799fafb0a4592f
GIT binary patch
literal 680
zc$@*K0$2TaPew8T0RR9100O804FCWD00sB}00LA10RR9100000000000000000000
z0000#Mn+Uk90pbZf<g!c5eN!_41p8@HUcCA5DN+b1Rw>32L~z}4h6`rF(xw9^$4mk
za_1YAM`5!3wa1O&H6iiv{5bq`A0|gJZEa~EVE>L{`pMNLs4sq%z$Vtg|60yRQR1D0
zzPr>KNyg*u`a=IKX-c0liBT~!!lw!rYL~wM0qTP{^2*@XegFzSmQh%Q23(W>?FkO(
zMIJF~5uwo<5yS)S)XgS78;)_q^vZ7@$cGT{a(?$0z^mcR+1p;I?;@l-X#v~=^Wzg8
ziKL;KV1|`@PrgK0T3hE~L;DV`QMEp6eLsrMD~Tk%Y#0>9w|<3nShtaA=wqBnNJRM(
zYJ&ee1NkHADu@*uzomdCRP=!X5HFZ%V95oAT5EebY~I^)D%zci?mpr=?@9BM&wSIZ
z|NoM0YrG|X0lWya^FNKnPxGRoz6+_GJic=tS=ka-Lo7zxDEh4eg6Y;@-^cthe}QKe
z^;YtF<w5D2miGN1Ev)4B^&L>JT%)=ahCRUJb$+CPqU|(iCxpOSEfDPRbO`^X*9f7y
zfuzBGWF!7i)aXFf6?3~A)Ht9dN;7r>KxlChNt>I<*2__}L_#$jed>my*Ke_Lb@NGB
zsf<Gvp(-*IWr%jJzE~&e^|6CmIB%cmbF8ZiY&d=U6q{y_m9R>q)R4RDmpz?)Zmx1u
zXZp@wFTgH7akPeAN95>Mi$$!bGweDM*(cR*9#HFGRHWkN5G^l_x!i}C4EHo?X>2Y!
zgw3ZfPEU|DrfDgTITq(ddQGjHv#UB2;;>&lHl*b+T0JE%(+P)9$YT{LR7$s$=*k{G
Ont+uv{)fzhkW2uTS22|U