blob: 913f56c3206082293a54871bbf011e79fae544fb [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 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 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 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 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 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 20px/40px sans-serif'
PASS computedStyle.lineHeight is '40px'
PASS checkFontStyleValue() is true
PASS style.font is ''
PASS computedStyle.font is 'normal normal normal 16px/18px foobar'
PASS checkFontStyleValue() is true
PASS style.font is ''
PASS computedStyle.font is 'normal normal bold 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 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