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

Unified Diff: LayoutTests/svg/animations/script-tests/svgnumber-animation-1.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
« no previous file with comments | « no previous file | LayoutTests/svg/animations/script-tests/svgnumber-animation-2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/animations/script-tests/svgnumber-animation-1.js
diff --git a/LayoutTests/svg/animations/script-tests/svgnumber-animation-1.js b/LayoutTests/svg/animations/script-tests/svgnumber-animation-1.js
index 6b91db659d863e1d8117c0d27e973cbcf973db9d..1a49f563b58719cccb4aff9a0b29673dbe220c21 100644
--- a/LayoutTests/svg/animations/script-tests/svgnumber-animation-1.js
+++ b/LayoutTests/svg/animations/script-tests/svgnumber-animation-1.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() {
« no previous file with comments | « no previous file | LayoutTests/svg/animations/script-tests/svgnumber-animation-2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698