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

Unified Diff: LayoutTests/animations/fill-mode-multiple-keyframes.html

Issue 707713005: Don't require getPropertyCSSValue in animation fill-mode 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/animations/fill-mode-multiple-keyframes.html
diff --git a/LayoutTests/animations/fill-mode-multiple-keyframes.html b/LayoutTests/animations/fill-mode-multiple-keyframes.html
index 1327742390e7566cfb7a40a171045b7cef89d5c5..485c032e32ecaa2dd81c87e6f2e69c6935489100 100644
--- a/LayoutTests/animations/fill-mode-multiple-keyframes.html
+++ b/LayoutTests/animations/fill-mode-multiple-keyframes.html
@@ -93,7 +93,7 @@
for (var i=0; i < expectedValues.length; i++) {
var el = document.getElementById(expectedValues[i].id);
var expectedValue = expectedValues[i].end;
- var realValue = window.getComputedStyle(el).getPropertyCSSValue("left").getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
+ var realValue = parseFloat(window.getComputedStyle(el).left);
if (Math.abs(expectedValue - realValue) < allowance) {
result += "PASS";
} else {
@@ -111,7 +111,7 @@
for (var i=0; i < expectedValues.length; i++) {
var el = document.getElementById(expectedValues[i].id);
var expectedValue = expectedValues[i].start;
- var realValue = window.getComputedStyle(el).getPropertyCSSValue("left").getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
+ var realValue = parseFloat(window.getComputedStyle(el).left);
if (Math.abs(expectedValue - realValue) < allowance) {
result += "PASS";
} else {
« no previous file with comments | « LayoutTests/animations/fill-mode-missing-from-to-keyframes.html ('k') | LayoutTests/animations/fill-mode-removed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698