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

Unified Diff: LayoutTests/svg/animations/script-tests/svgnumber-animation-2.js

Issue 705373004: Don't require getPropertyCSSValue in svg number animation 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/svgnumber-animation-2.js
diff --git a/LayoutTests/svg/animations/script-tests/svgnumber-animation-2.js b/LayoutTests/svg/animations/script-tests/svgnumber-animation-2.js
index eb81a668d6b041ded3fd898811ff118cb6d86599..e237861cde36c449a40cc7036a265661b1c2a162 100644
--- a/LayoutTests/svg/animations/script-tests/svgnumber-animation-2.js
+++ b/LayoutTests/svg/animations/script-tests/svgnumber-animation-2.js
@@ -24,15 +24,15 @@ rootSVGElement.appendChild(rect);
// Setup animation test
function sample1() {
// Check initial/end conditions
- 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.5");
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "0.5");
}
function sample3() {
- shouldBeCloseEnough("getComputedStyle(rect).getPropertyCSSValue('opacity').getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "1");
+ shouldBeCloseEnough("parseFloat(getComputedStyle(rect).opacity)", "1");
}
function executeTest() {

Powered by Google App Engine
This is Rietveld 408576698