blob: 6c6df9fab2405d1067a98a715d9107768759d854 [file] [log] [blame]
Test the return values for the font properties on the style object.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS style.font is ''
PASS computedStyle.font is 'normal normal normal normal 20px/23px foobar'
PASS computedStyle.fontSize is '20px'
PASS checkFontStyleValue() is true
PASS style.font is '20px sans-serif'
PASS computedStyle.font is 'normal normal normal normal 20px/23px sans-serif'
PASS computedStyle.fontFamily is 'sans-serif'
PASS checkFontStyleValue() is true
PASS style.font is 'italic 20px sans-serif'
PASS computedStyle.font is 'italic normal normal normal 20px/23px sans-serif'
PASS computedStyle.fontStyle is 'italic'
PASS checkFontStyleValue() is true
PASS style.font is 'italic small-caps 20px sans-serif'
PASS computedStyle.font is 'italic small-caps normal normal 20px/23px sans-serif'
PASS computedStyle.fontVariant is 'small-caps'
PASS checkFontStyleValue() is true
PASS style.font is 'italic small-caps bold 20px sans-serif'
PASS computedStyle.font is 'italic small-caps bold normal 20px/23px sans-serif'
PASS computedStyle.fontWeight is 'bold'
PASS checkFontStyleValue() is true
PASS style.font is 'italic small-caps bold 20px/40px sans-serif'
PASS computedStyle.font is 'italic small-caps bold normal 20px/40px sans-serif'
PASS computedStyle.lineHeight is '40px'
PASS checkFontStyleValue() is true
PASS style.font is ''
PASS computedStyle.font is 'normal normal normal normal 16px/18px foobar'
PASS checkFontStyleValue() is true
PASS style.font is ''
PASS computedStyle.font is 'normal normal bold normal 16px/18px foobar'
PASS computedStyle.fontWeight is 'bold'
PASS checkFontStyleValue() is true
PASS style.font is 'bold 40px sans-serif'
PASS computedStyle.font is 'normal normal bold normal 40px/46px sans-serif'
PASS computedStyle.fontSize is '40px'
PASS computedStyle.fontFamily is 'sans-serif'
PASS checkFontStyleValue() is true
PASS successfullyParsed is true
TEST COMPLETE