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

Unified Diff: trunk/LayoutTests/animations/resources/animation-test-helpers.js

Issue 23465021: Revert 157745 "Add support for the object-position CSS property." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 3 months 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 | trunk/LayoutTests/fast/css/object-position.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/LayoutTests/animations/resources/animation-test-helpers.js
===================================================================
--- trunk/LayoutTests/animations/resources/animation-test-helpers.js (revision 157750)
+++ trunk/LayoutTests/animations/resources/animation-test-helpers.js (working copy)
@@ -367,19 +367,6 @@
} 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) {
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/css/object-position.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698