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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getAll.html

Issue 2096133002: [Typed OM] Add support for properties which take numbers in CSSProperties.in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync to head Created 4 years, 5 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
Index: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getAll.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getAll.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getAll.html
index 6ceb5967a5ff5d6e10ce21c3703fdc42b737a783..cfc74630e1f88f57822bfc93eb1ffcdb70776518 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getAll.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getAll.html
@@ -38,4 +38,15 @@ test(function() {
});
}, "getAll() throws if you try to get an invalid property");
+test(function() {
+ testElement.style.animationIterationCount = "infinite, 6.2";
+
+ var result = testElement.styleMap.getAll('animation-iteration-count');
+ assert_equals(result.length, 2);
+ assert_true(result[0] instanceof CSSKeywordValue);
+ assert_true(result[1] instanceof CSSNumberValue);
+ assert_equals(result[0].value, "infinite");
+ assert_equals(result[1].value, 6.2);
+}, "getAll() returns a list of mixed types if they are all valid types");
+
</script>

Powered by Google App Engine
This is Rietveld 408576698