OLD | NEW |
(Empty) | |
| 1 This tests that the font-weight, font-style and font-variant properties accept v
alue lists when they appear inside @font-face rules, and that the value 'all' is
allowed only by itself. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS test("font-weight", "100") is "100" |
| 7 PASS test("font-weight", "all") is "all" |
| 8 PASS test("font-weight", "100, 200") is "100, 200" |
| 9 PASS test("font-weight", "bold, normal") is "bold, normal" |
| 10 PASS test("font-weight", "100, 200, 300, 400, 500, 600, 700, 100") is "100, 200,
300, 400, 500, 600, 700, 100" |
| 11 FAIL test("font-weight", "all, 100") should throw exception TypeError: Result of
expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is
not an object.. Threw exception TypeError: Cannot read property 'cssText' of nu
ll. |
| 12 FAIL test("font-weight", "bold, normal, all") should throw exception TypeError:
Result of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)'
[null] is not an object.. Threw exception TypeError: Cannot read property 'cssTe
xt' of null. |
| 13 FAIL test("font-weight", "") should throw exception TypeError: Result of express
ion 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an
object.. Threw exception TypeError: Cannot read property 'cssText' of null. |
| 14 PASS test("font-style", "normal") is "normal" |
| 15 PASS test("font-style", "italic") is "italic" |
| 16 PASS test("font-style", "normal, oblique") is "normal, oblique" |
| 17 PASS test("font-style", "all") is "all" |
| 18 FAIL test("font-style", "all, normal") should throw exception TypeError: Result
of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null]
is not an object.. Threw exception TypeError: Cannot read property 'cssText' of
null. |
| 19 FAIL test("font-style", "italic, all") should throw exception TypeError: Result
of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null]
is not an object.. Threw exception TypeError: Cannot read property 'cssText' of
null. |
| 20 FAIL test("font-style", "") should throw exception TypeError: Result of expressi
on 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an o
bject.. Threw exception TypeError: Cannot read property 'cssText' of null. |
| 21 PASS test("font-variant", "normal") is "normal" |
| 22 PASS test("font-variant", "small-caps") is "small-caps" |
| 23 PASS test("font-variant", "normal, small-caps") is "normal, small-caps" |
| 24 PASS test("font-variant", "all") is "all" |
| 25 FAIL test("font-variant", "all, normal") should throw exception TypeError: Resul
t of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null
] is not an object.. Threw exception TypeError: Cannot read property 'cssText' o
f null. |
| 26 FAIL test("font-variant", "small-caps, all") should throw exception TypeError: R
esult of expression 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [
null] is not an object.. Threw exception TypeError: Cannot read property 'cssTex
t' of null. |
| 27 FAIL test("font-variant", "") should throw exception TypeError: Result of expres
sion 'style.sheet.rules[0].style.getPropertyCSSValue(property)' [null] is not an
object.. Threw exception TypeError: Cannot read property 'cssText' of null. |
| 28 PASS successfullyParsed is true |
| 29 |
| 30 TEST COMPLETE |
| 31 |
OLD | NEW |