1 Test the return values for the font properties on the style object.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS computedStyle.font is 'normal normal normal normal 20px / normal foobar'
8 PASS computedStyle.fontSize is '20px'
9 PASS checkFontStyleValue() is true
10 PASS style.font is '20px sans-serif'
11 PASS computedStyle.font is 'normal normal normal normal 20px / normal sans-serif'
12 PASS computedStyle.fontFamily is 'sans-serif'
13 PASS checkFontStyleValue() is true
14 PASS style.font is 'italic 20px sans-serif'
15 PASS computedStyle.font is 'italic normal normal normal 20px / normal sans-serif'
16 PASS computedStyle.fontStyle is 'italic'
17 PASS checkFontStyleValue() is true
18 PASS style.font is 'italic small-caps 20px sans-serif'
19 PASS computedStyle.font is 'italic small-caps normal normal 20px / normal sans-serif'
20 PASS computedStyle.fontVariant is 'small-caps'
21 PASS checkFontStyleValue() is true
22 PASS style.font is 'italic small-caps bold 20px sans-serif'
23 PASS computedStyle.font is 'italic small-caps bold normal 20px / normal sans-serif'
24 PASS computedStyle.fontWeight is 'bold'
25 PASS checkFontStyleValue() is true
26 PASS style.font is 'italic small-caps bold 20px/40px sans-serif'
27 PASS computedStyle.font is 'italic small-caps bold normal 20px / 40px sans-serif'
28 PASS computedStyle.lineHeight is '40px'
29 PASS checkFontStyleValue() is true
31 PASS computedStyle.font is 'normal normal normal normal 16px / normal foobar'
32 PASS checkFontStyleValue() is true
34 PASS computedStyle.font is 'normal normal bold normal 16px / normal foobar'
35 PASS computedStyle.fontWeight is 'bold'
36 PASS checkFontStyleValue() is true
37 PASS style.font is 'bold 40px sans-serif'
38 PASS computedStyle.font is 'normal normal bold normal 40px / normal sans-serif'
39 PASS computedStyle.fontSize is '40px'
40 PASS computedStyle.fontFamily is 'sans-serif'
41 PASS checkFontStyleValue() is true
42 PASS successfullyParsed is true