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

Unified Diff: LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.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/animate-css-xml-attributeType.js
diff --git a/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js b/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js
index 77cfb608381db91f9c17a87694d61932007f18c9..2a3f6a3fd301e73baa90ef7eb9e503b3e23e3297 100644
--- a/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js
+++ b/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js
@@ -40,7 +40,7 @@ function sample3() {
}
function sample4() {
- shouldBeCloseEnough("getComputedStyle(rect).getPropertyCSSValue('opacity').getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0.8");
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "0.8");
// change the animation to a non-CSS animatable value.
set.setAttribute("attributeName", "x");
set.setAttribute("to", "200");
@@ -49,7 +49,7 @@ function sample4() {
function sample5() {
// verify that the animation does not run.
shouldBeCloseEnough("rect.x.animVal.value", "100");
- shouldBeCloseEnough("getComputedStyle(rect).getPropertyCSSValue('opacity').getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "1.0");
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "1.0");
// change the animationType to XML which is valid.
set.setAttribute("attributeType", "XML");
}

Powered by Google App Engine
This is Rietveld 408576698