OLD | NEW |
| (Empty) |
1 Test exceptions thrown by the CSSPrimitiveValue APIs. Primitive values are curre
ntly immutable (see https://bugs.webkit.org/show_bug.cgi?id=31223) | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10 | |
7 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10 | |
8 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10 | |
9 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception NoModi
ficationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue':
CSSPrimitiveValue objects are read-only.. | |
10 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception NoM
odificationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue
': CSSPrimitiveValue objects are read-only.. | |
11 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception NoModifica
tionAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSP
rimitiveValue objects are read-only.. | |
12 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception NoMod
ificationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue':
CSSPrimitiveValue objects are read-only.. | |
13 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception NoModi
ficationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue':
CSSPrimitiveValue objects are read-only.. | |
14 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception InvalidAc
cessError: Failed to execute 'getFloatValue' on 'CSSPrimitiveValue': Failed to o
btain a double value.. | |
15 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception InvalidAcc
essError: Failed to execute 'getFloatValue' on 'CSSPrimitiveValue': Failed to ob
tain a double value.. | |
16 PASS left.getStringValue() threw exception InvalidAccessError: Failed to execute
'getStringValue' on 'CSSPrimitiveValue': This object's value cannot be represen
ted as a string.. | |
17 PASS left.getCounterValue() threw exception InvalidAccessError: Failed to execut
e 'getCounterValue' on 'CSSPrimitiveValue': This object is not a counter value.. | |
18 PASS left.getRectValue() threw exception InvalidAccessError: Failed to execute '
getRectValue' on 'CSSPrimitiveValue': This object is not a rect value.. | |
19 PASS left.getRGBColorValue() threw exception InvalidAccessError: Failed to execu
te 'getRGBColorValue' on 'CSSPrimitiveValue': This object is not an RGB color va
lue.. | |
20 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10 | |
21 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10 | |
22 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10 | |
23 PASS fontFamily.getStringValue() is "Times" | |
24 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw
exception NoModificationAllowedError: Failed to execute 'setStringValue' on 'CSS
PrimitiveValue': CSSPrimitiveValue objects are read-only.. | |
25 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw excep
tion NoModificationAllowedError: Failed to execute 'setStringValue' on 'CSSPrimi
tiveValue': CSSPrimitiveValue objects are read-only.. | |
26 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw
exception NoModificationAllowedError: Failed to execute 'setStringValue' on 'CS
SPrimitiveValue': CSSPrimitiveValue objects are read-only.. | |
27 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw
exception NoModificationAllowedError: Failed to execute 'setStringValue' on 'CSS
PrimitiveValue': CSSPrimitiveValue objects are read-only.. | |
28 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') t
hrew exception NoModificationAllowedError: Failed to execute 'setStringValue' on
'CSSPrimitiveValue': CSSPrimitiveValue objects are read-only.. | |
29 PASS fontFamily.getFloatValue() threw exception InvalidAccessError: Failed to ex
ecute 'getFloatValue' on 'CSSPrimitiveValue': Failed to obtain a double value.. | |
30 PASS fontFamily.getCounterValue() threw exception InvalidAccessError: Failed to
execute 'getCounterValue' on 'CSSPrimitiveValue': This object is not a counter v
alue.. | |
31 PASS fontFamily.getRectValue() threw exception InvalidAccessError: Failed to exe
cute 'getRectValue' on 'CSSPrimitiveValue': This object is not a rect value.. | |
32 PASS fontFamily.getRGBColorValue() threw exception InvalidAccessError: Failed to
execute 'getRGBColorValue' on 'CSSPrimitiveValue': This object is not an RGB co
lor value.. | |
33 PASS fontFamily.getStringValue() is "Times" | |
34 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10 | |
35 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10 | |
36 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10 | |
37 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception NoModi
ficationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue':
CSSPrimitiveValue objects are read-only.. | |
38 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception NoM
odificationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue
': CSSPrimitiveValue objects are read-only.. | |
39 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception NoModifica
tionAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue': CSSP
rimitiveValue objects are read-only.. | |
40 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception NoMod
ificationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue':
CSSPrimitiveValue objects are read-only.. | |
41 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception NoModi
ficationAllowedError: Failed to execute 'setFloatValue' on 'CSSPrimitiveValue':
CSSPrimitiveValue objects are read-only.. | |
42 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception InvalidAc
cessError: Failed to execute 'getFloatValue' on 'CSSPrimitiveValue': Failed to o
btain a double value.. | |
43 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception InvalidAcc
essError: Failed to execute 'getFloatValue' on 'CSSPrimitiveValue': Failed to ob
tain a double value.. | |
44 PASS left.getStringValue() threw exception InvalidAccessError: Failed to execute
'getStringValue' on 'CSSPrimitiveValue': This object's value cannot be represen
ted as a string.. | |
45 PASS left.getCounterValue() threw exception InvalidAccessError: Failed to execut
e 'getCounterValue' on 'CSSPrimitiveValue': This object is not a counter value.. | |
46 PASS left.getRectValue() threw exception InvalidAccessError: Failed to execute '
getRectValue' on 'CSSPrimitiveValue': This object is not a rect value.. | |
47 PASS left.getRGBColorValue() threw exception InvalidAccessError: Failed to execu
te 'getRGBColorValue' on 'CSSPrimitiveValue': This object is not an RGB color va
lue.. | |
48 PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10 | |
49 PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10 | |
50 PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10 | |
51 FAIL fontFamily.getStringValue() should be Times. Threw exception TypeError: Can
not read property 'getStringValue' of undefined | |
52 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw
exception TypeError: Cannot read property 'setStringValue' of undefined. | |
53 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw excep
tion TypeError: Cannot read property 'setStringValue' of undefined. | |
54 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw
exception TypeError: Cannot read property 'setStringValue' of undefined. | |
55 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw
exception TypeError: Cannot read property 'setStringValue' of undefined. | |
56 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') t
hrew exception TypeError: Cannot read property 'setStringValue' of undefined. | |
57 PASS fontFamily.getFloatValue() threw exception TypeError: Cannot read property
'getFloatValue' of undefined. | |
58 PASS fontFamily.getCounterValue() threw exception TypeError: Cannot read propert
y 'getCounterValue' of undefined. | |
59 PASS fontFamily.getRectValue() threw exception TypeError: Cannot read property '
getRectValue' of undefined. | |
60 PASS fontFamily.getRGBColorValue() threw exception TypeError: Cannot read proper
ty 'getRGBColorValue' of undefined. | |
61 FAIL fontFamily.getStringValue() should be Times. Threw exception TypeError: Can
not read property 'getStringValue' of undefined | |
62 PASS successfullyParsed is true | |
63 | |
64 TEST COMPLETE | |
65 | |
OLD | NEW |