Bug 1105808 - Use ttf fonts in browser_fontinspector.js test. r=bgrins

This commit is contained in:
Heather Arthur 2014-12-04 12:51:00 +01:00
parent d413eb7ba6
commit fafacc7fc1
7 changed files with 6 additions and 6 deletions

View File

@ -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]

View File

@ -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{

View File

@ -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");

Binary file not shown.

Binary file not shown.