OLD | NEW |
1 Test getting/setting FontFace properties. | 1 Test getting/setting FontFace properties. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS ahemFace.family is "Ahem" | 6 PASS ahemFace.family is "Ahem" |
7 PASS ahemFace.style is "italic" | 7 PASS ahemFace.style is "italic" |
8 PASS ahemFace.weight is "300" | 8 PASS ahemFace.weight is "300" |
9 PASS ahemFace.unicodeRange is "U+0-3FF" | 9 PASS ahemFace.unicodeRange is "U+0-3FF" |
10 PASS ahemFace.variant is "small-caps" | 10 PASS ahemFace.variant is "small-caps" |
(...skipping 14 matching lines...) Expand all Loading... |
25 PASS constructedFace.variant is "small-caps" | 25 PASS constructedFace.variant is "small-caps" |
26 PASS constructedFace.featureSettings is "'liga' 0" | 26 PASS constructedFace.featureSettings is "'liga' 0" |
27 | 27 |
28 PASS modifiedFace.family is "modified" | 28 PASS modifiedFace.family is "modified" |
29 PASS modifiedFace.style is "italic" | 29 PASS modifiedFace.style is "italic" |
30 PASS modifiedFace.weight is "900" | 30 PASS modifiedFace.weight is "900" |
31 PASS modifiedFace.unicodeRange is "U+0-3FF" | 31 PASS modifiedFace.unicodeRange is "U+0-3FF" |
32 PASS modifiedFace.variant is "small-caps" | 32 PASS modifiedFace.variant is "small-caps" |
33 PASS modifiedFace.featureSettings is "'dlig' 1, 'liga' 0" | 33 PASS modifiedFace.featureSettings is "'dlig' 1, 'liga' 0" |
34 | 34 |
35 PASS new FontFace('test', 'invalid_src', {}) threw exception SyntaxError: Failed
to construct 'FontFace': The source provided ('invalid_src') could not be parse
d as a value list.. | 35 PASS new FontFace('test', 'invalid_src') threw exception SyntaxError: Failed to
construct 'FontFace': The source provided ('invalid_src') could not be parsed as
a value list.. |
36 PASS face.style = '' threw exception SyntaxError: Failed to set the 'style' prop
erty on 'FontFace': Failed to set '' as a property value.. | 36 PASS face.style = '' threw exception SyntaxError: Failed to set the 'style' prop
erty on 'FontFace': Failed to set '' as a property value.. |
37 PASS face.weight = 'a' threw exception SyntaxError: Failed to set the 'weight' p
roperty on 'FontFace': Failed to set 'a' as a property value.. | 37 PASS face.weight = 'a' threw exception SyntaxError: Failed to set the 'weight' p
roperty on 'FontFace': Failed to set 'a' as a property value.. |
38 PASS face.unicodeRange = 'U+' threw exception SyntaxError: Failed to set the 'un
icodeRange' property on 'FontFace': Failed to set 'U+' as a property value.. | 38 PASS face.unicodeRange = 'U+' threw exception SyntaxError: Failed to set the 'un
icodeRange' property on 'FontFace': Failed to set 'U+' as a property value.. |
39 PASS face.variant = '???' threw exception SyntaxError: Failed to set the 'varian
t' property on 'FontFace': Failed to set '???' as a property value.. | 39 PASS face.variant = '???' threw exception SyntaxError: Failed to set the 'varian
t' property on 'FontFace': Failed to set '???' as a property value.. |
40 PASS face.featureSettings = null threw exception SyntaxError: Failed to set the
'featureSettings' property on 'FontFace': Failed to set 'null' as a property val
ue.. | 40 PASS face.featureSettings = null threw exception SyntaxError: Failed to set the
'featureSettings' property on 'FontFace': Failed to set 'null' as a property val
ue.. |
41 PASS successfullyParsed is true | 41 PASS successfullyParsed is true |
42 | 42 |
43 TEST COMPLETE | 43 TEST COMPLETE |
44 | 44 |
OLD | NEW |