OLD | NEW |
| (Empty) |
1 This tests that the methods on CSSPrimitiveValue throw exceptions | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_
UNKNOWN) threw exception InvalidAccessError: Failed to execute 'getFloatValue' o
n 'CSSPrimitiveValue': Failed to obtain a double value.. | |
7 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_
STRING) threw exception InvalidAccessError: Failed to execute 'getFloatValue' on
'CSSPrimitiveValue': Failed to obtain a double value.. | |
8 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_
HZ) threw exception InvalidAccessError: Failed to execute 'getFloatValue' on 'CS
SPrimitiveValue': Failed to obtain a double value.. | |
9 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_
S) threw exception InvalidAccessError: Failed to execute 'getFloatValue' on 'CSS
PrimitiveValue': Failed to obtain a double value.. | |
10 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_
RAD) threw exception InvalidAccessError: Failed to execute 'getFloatValue' on 'C
SSPrimitiveValue': Failed to obtain a double value.. | |
11 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_
PERCENTAGE) threw exception InvalidAccessError: Failed to execute 'getFloatValue
' on 'CSSPrimitiveValue': Failed to obtain a double value.. | |
12 PASS div.style.getPropertyCSSValue('height').getFloatValue(CSSPrimitiveValue.CSS
_PX) threw exception InvalidAccessError: Failed to execute 'getFloatValue' on 'C
SSPrimitiveValue': Failed to obtain a double value.. | |
13 PASS div.style.getPropertyCSSValue('height').getFloatValue(CSSPrimitiveValue.CSS
_DEG) threw exception InvalidAccessError: Failed to execute 'getFloatValue' on '
CSSPrimitiveValue': Failed to obtain a double value.. | |
14 PASS div.style.getPropertyCSSValue('clip').primitiveType is CSSPrimitiveValue.CS
S_RECT | |
15 PASS div.style.getPropertyCSSValue('clip').getFloatValue(CSSPrimitiveValue.CSS_P
X) threw exception InvalidAccessError: Failed to execute 'getFloatValue' on 'CSS
PrimitiveValue': Failed to obtain a double value.. | |
16 PASS div.style.getPropertyCSSValue('clip').getStringValue() threw exception Inva
lidAccessError: Failed to execute 'getStringValue' on 'CSSPrimitiveValue': This
object's value cannot be represented as a string.. | |
17 PASS div.style.getPropertyCSSValue('clip').getCounterValue() threw exception Inv
alidAccessError: Failed to execute 'getCounterValue' on 'CSSPrimitiveValue': Thi
s object is not a counter value.. | |
18 PASS div.style.getPropertyCSSValue('clip').getRGBColorValue() threw exception In
validAccessError: Failed to execute 'getRGBColorValue' on 'CSSPrimitiveValue': T
his object is not an RGB color value.. | |
19 PASS div.style.getPropertyCSSValue('color').primitiveType is CSSPrimitiveValue.C
SS_RGBCOLOR | |
20 PASS div.style.getPropertyCSSValue('color').getFloatValue(CSSPrimitiveValue.CSS_
PX) threw exception InvalidAccessError: Failed to execute 'getFloatValue' on 'CS
SPrimitiveValue': Failed to obtain a double value.. | |
21 PASS div.style.getPropertyCSSValue('color').getStringValue() threw exception Inv
alidAccessError: Failed to execute 'getStringValue' on 'CSSPrimitiveValue': This
object's value cannot be represented as a string.. | |
22 PASS div.style.getPropertyCSSValue('color').getCounterValue() threw exception In
validAccessError: Failed to execute 'getCounterValue' on 'CSSPrimitiveValue': Th
is object is not a counter value.. | |
23 PASS div.style.getPropertyCSSValue('color').getRectValue() threw exception Inval
idAccessError: Failed to execute 'getRectValue' on 'CSSPrimitiveValue': This obj
ect is not a rect value.. | |
24 PASS successfullyParsed is true | |
25 | |
26 TEST COMPLETE | |
27 | |
OLD | NEW |