Index: LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-remove.js |
diff --git a/LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-remove.js b/LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-remove.js |
index 6b6a2e3cb548a6c0ec6252f9266ec682e1c399a5..c226aa8d5154ac660cd074108e4611b6db163ce9 100644 |
--- a/LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-remove.js |
+++ b/LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-remove.js |
@@ -3,24 +3,24 @@ embedSVGTestCase("resources/change-css-property-while-animating-fill-remove.svg" |
// Setup animation test |
function sample1() { |
- shouldBeCloseEnough("getComputedStyle(rect).getPropertyCSSValue('opacity').getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "0"); |
} |
function sample2() { |
- shouldBeCloseEnough("getComputedStyle(rect).getPropertyCSSValue('opacity').getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0.25"); |
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "0.25"); |
rect.setAttribute("opacity", "1"); |
} |
function sample3() { |
- shouldBeCloseEnough("getComputedStyle(rect).getPropertyCSSValue('opacity').getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0.25"); |
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "0.25"); |
} |
function sample4() { |
- shouldBeCloseEnough("getComputedStyle(rect).getPropertyCSSValue('opacity').getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0.5"); |
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "0.5"); |
} |
function sample5() { |
- shouldBeCloseEnough("getComputedStyle(rect).getPropertyCSSValue('opacity').getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "1"); |
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "1"); |
} |
function executeTest() { |