1 descriptionQuiet("Series of tests to ensure that context.font is consistent.");
3 var canvas = document.createElement('canvas');
4 var ctx = canvas.getContext('2d');
5 var fontNames = ["bold 13px Arial",
7 "small-caps 13px Arial"];
9 for (var i = 0; i < fontNames.length; i++) {
10 var fontName = fontNames[i];
11 debug('Testing font "' + fontName + '"');
13 shouldBe("ctx.font", "fontName");