mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Bug 1105808 - Use ttf fonts in browser_fontinspector.js test. r=bgrins
This commit is contained in:
parent
d413eb7ba6
commit
fafacc7fc1
@ -2,8 +2,8 @@
|
||||
subsuite = devtools
|
||||
support-files =
|
||||
browser_fontinspector.html
|
||||
ostrich-black.woff
|
||||
ostrich-regular.woff
|
||||
ostrich-black.ttf
|
||||
ostrich-regular.ttf
|
||||
head.js
|
||||
|
||||
[browser_fontinspector.js]
|
||||
|
@ -3,12 +3,12 @@
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: bar;
|
||||
src: url(bad/font/name.ttf), url(ostrich-regular.woff) format("woff");
|
||||
src: url(bad/font/name.ttf), url(ostrich-regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: bar;
|
||||
font-weight: 800;
|
||||
src: url(ostrich-black.woff);
|
||||
src: url(ostrich-black.ttf);
|
||||
}
|
||||
|
||||
body{
|
||||
|
@ -47,10 +47,10 @@ function* testBodyFonts(inspector) {
|
||||
ok(s[0].classList.contains("is-remote"),
|
||||
"font 0: is remote");
|
||||
is(s[0].querySelector(".font-url").value,
|
||||
"http://mochi.test:8888/browser/browser/devtools/fontinspector/test/ostrich-regular.woff",
|
||||
"http://mochi.test:8888/browser/browser/devtools/fontinspector/test/ostrich-regular.ttf",
|
||||
"font 0: right url");
|
||||
is(s[0].querySelector(".font-format").textContent,
|
||||
"woff", "font 0: right font format");
|
||||
"truetype", "font 0: right font format");
|
||||
is(s[0].querySelector(".font-css-name").textContent,
|
||||
"bar", "font 0: right css name");
|
||||
|
||||
|
BIN
browser/devtools/fontinspector/test/ostrich-black.ttf
Executable file
BIN
browser/devtools/fontinspector/test/ostrich-black.ttf
Executable file
Binary file not shown.
Binary file not shown.
BIN
browser/devtools/fontinspector/test/ostrich-regular.ttf
Executable file
BIN
browser/devtools/fontinspector/test/ostrich-regular.ttf
Executable file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user