Index: LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-freeze.js |
diff --git a/LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-freeze.js b/LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-freeze.js |
index 1ece05153ff015fe6e039099babd817b88a69e13..b04fa75c72de7474dbdf060eb7eca44140532630 100644 |
--- a/LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-freeze.js |
+++ b/LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-freeze.js |
@@ -3,24 +3,24 @@ embedSVGTestCase("resources/change-css-property-while-animating-fill-freeze.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)", "0.5"); |
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "0.5"); |
} |
function executeTest() { |