3 <script src=
"../../resources/js-test.js"></script>
6 font-family: 'Ahem', serif;
7 src: url(../../resources/Ahem.ttf);
11 src: url('../../resources/WebKitWeightWatcher100.ttf');
14 font-family: 'Ahem3', Arial;
18 description('Test that @font-face has a single font-family-name.');
21 shouldBe('document.styleSheets[1].cssRules.length', '3');
22 shouldBeEqualToString('document.styleSheets[1].cssRules[0].style.fontFamily', "");
23 shouldBeEqualToString('document.styleSheets[1].cssRules[1].style.fontFamily', "Ahem2");
24 shouldBeEqualToString('document.styleSheets[1].cssRules[2].style.fontFamily', "");
30 testFailed('document.fonts does not exist');