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

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

Issue 38573003: Use 4 value syntax for getComputedStyle of background-position and -webkit-mask-position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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/resources/animation-test-helpers.js
diff --git a/LayoutTests/animations/resources/animation-test-helpers.js b/LayoutTests/animations/resources/animation-test-helpers.js
index 2811a69bb31ac344aabebc2193a1cef2ed30ec86..9dbde7e1682c01ac1c7dc8e65deeafa7be67ad78 100644
--- a/LayoutTests/animations/resources/animation-test-helpers.js
+++ b/LayoutTests/animations/resources/animation-test-helpers.js
@@ -375,8 +375,10 @@ function checkExpectedTransitionValue(expected, index)
for (var i = 0; i < computedStyle.length; ++i) {
switch (computedStyle[i].cssValueType) {
case CSSValue.CSS_PRIMITIVE_VALUE:
- if (computedStyle[i].primitiveType == CSSPrimitiveValue.CSS_STRING)
+ if (computedStyle[i].primitiveType === CSSPrimitiveValue.CSS_STRING)
values.push(computedStyle[i].getStringValue());
+ else if (computedStyle[i].primitiveType === CSSPrimitiveValue.CSS_IDENT)
+ values.push(computedStyle[i].cssText);
else
values.push(computedStyle[i].getFloatValue(CSSPrimitiveValue.CSS_NUMBER));
break;

Powered by Google App Engine
This is Rietveld 408576698