Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Unified Diff: LayoutTests/svg/animations/script-tests/change-css-property-while-animating-fill-freeze.js

Issue 700843006: Don't require getPropertyCSSValue in svg tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698