Bug 1970242 - Use more common font Ahem.ttf. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D252495 Differential Revision: https://phabricator.services.mozilla.com/D252834
This commit is contained in:
committed by
dmeehan@mozilla.com
parent
39f4cca70c
commit
011eeffeb1
@@ -27,3 +27,4 @@ skip-if = [
|
|||||||
|
|
||||||
["test_loadLocalFont.html"]
|
["test_loadLocalFont.html"]
|
||||||
skip-if = ["os == 'android'"] # Font does not exist on Android
|
skip-if = ["os == 'android'"] # Font does not exist on Android
|
||||||
|
support-files = ["!/dom/base/test/Ahem.ttf"]
|
||||||
|
|||||||
@@ -8,15 +8,15 @@
|
|||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let LocalFiraSans = new FontFace(
|
let Ahem = new FontFace(
|
||||||
"LocalFiraSans",
|
"Ahem",
|
||||||
"url('chrome://pocket/content/panels/fonts/FiraSans-Regular.woff') format('woff')"
|
"url('chrome://mochitests/content/tests/dom/base/test/Ahem.ttf')"
|
||||||
).load().then(() => {
|
).load().then(() => {
|
||||||
ok(true, "We should suuceed");
|
ok(true, "We should succeed (resolve)");
|
||||||
}, () => {
|
}, () => {
|
||||||
ok(false, "We shouldn't fail (reject)");
|
ok(false, "We shouldn't fail (reject)");
|
||||||
});
|
});
|
||||||
console.log(LocalFiraSans); // avoid warning
|
console.log(Ahem); // avoid warning
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
ok(false, "We shouldn't fail (catch)" + e);
|
ok(false, "We shouldn't fail (catch)" + e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user