6 testRunner
.dumpAsText();
10 document
.getElementById('console').appendChild(document
.createTextNode(msg
+ "\n"));
21 window
.onload = function()
23 for (var i
= 0; i
< families
.length
; i
++) {
24 var family
= families
[i
];
25 var div
= document
.createElement("div");
26 div
.setAttribute("style", "font-family: " + family
);
27 document
.body
.appendChild(div
);
29 var returnedFamily
= window
.getComputedStyle(div
).fontFamily
30 if (family
== returnedFamily
)
31 log("PASS: The computed style for a specified font-family of '" + family
+ "' matched.");
33 log("FAIL: The computed style for a specified font-family of '" + family
+ "' did not match. Actual result was '" + returnedFamily
+ "'.");
39 <pre id=
"console"></pre>