OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test for Bug 26183 - [@font-face] font-family descriptor with multiple na
mes should be discarded</title> | 4 <title>Test for Bug 26183 - [@font-face] font-family descriptor with multiple na
mes should be discarded</title> |
5 <style> | 5 <style> |
6 .testtext { | 6 .testtext { |
7 font-size: 64px; | 7 font-size: 64px; |
8 font-family: Arial; | 8 font-family: Arial; |
9 border: solid 1px; | 9 border: solid 1px; |
10 } | 10 } |
(...skipping 18 matching lines...) Expand all Loading... |
29 window.testRunner.dumpAsText(); | 29 window.testRunner.dumpAsText(); |
30 | 30 |
31 description("font-family descriptor in @font-face rule can take only one family.
Hence the @font-face rule in this test must be ignored."); | 31 description("font-family descriptor in @font-face rule can take only one family.
Hence the @font-face rule in this test must be ignored."); |
32 | 32 |
33 function test() | 33 function test() |
34 { | 34 { |
35 shouldBeTrue("document.getElementById('testText').offsetWidth == document.ge
tElementById('mustMatch').offsetWidth"); | 35 shouldBeTrue("document.getElementById('testText').offsetWidth == document.ge
tElementById('mustMatch').offsetWidth"); |
36 shouldBeTrue("document.getElementById('testText').offsetWidth != document.ge
tElementById('mustNotMatch').offsetWidth"); | 36 shouldBeTrue("document.getElementById('testText').offsetWidth != document.ge
tElementById('mustNotMatch').offsetWidth"); |
37 } | 37 } |
38 </script> | 38 </script> |
39 <script src="../js/resources/js-test-post.js"></script> | |
40 </body> | 39 </body> |
41 </html> | 40 </html> |
42 | 41 |
OLD | NEW |