Index: LayoutTests/animations/resources/animation-test-helpers.js |
diff --git a/LayoutTests/animations/resources/animation-test-helpers.js b/LayoutTests/animations/resources/animation-test-helpers.js |
index 78238385f85adad7bc0512e81d30f75341d823e3..7cf8465427727af8670acd917d4d842731e3bfc7 100644 |
--- a/LayoutTests/animations/resources/animation-test-helpers.js |
+++ b/LayoutTests/animations/resources/animation-test-helpers.js |
@@ -367,6 +367,19 @@ function checkExpectedTransitionValue(expected, index) |
} else { |
pass = isCloseEnough(computedCrossFade.percent, expectedValue, tolerance); |
} |
+ } else if (property == "object-position") { |
+ computedValue = window.getComputedStyle(document.getElementById(elementId)).objectPosition; |
+ var actualArray = computedValue.split(" "); |
+ var expectedArray = expectedValue.split(" "); |
+ if (actualArray.length != expectedArray.length) { |
+ pass = false; |
+ } else { |
+ for (i = 0; i < expectedArray.length; ++i) { |
+ pass = isCloseEnough(parseFloat(actualArray[i]), parseFloat(expectedArray[i]), tolerance); |
+ if (!pass) |
+ break; |
+ } |
+ } |
} else { |
var computedStyle = window.getComputedStyle(document.getElementById(elementId)).getPropertyCSSValue(property); |
if (computedStyle.cssValueType == CSSValue.CSS_VALUE_LIST) { |