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

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

Issue 2251663002: [Typed-OM] Get CSSTokenStreamValue from StyleMap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused header Created 4 years, 4 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 | third_party/WebKit/LayoutTests/typedcssom/inlinestyle/tokenStreamValue.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_iteration.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_iteration.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_iteration.html
index be11c935eec826ee603e5e879fab943c0a805c32..bf1de5d9dfe3b1951a2c5c0a31a0ac9f54ef9858 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_iteration.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_iteration.html
@@ -84,7 +84,7 @@ test(function() {
assert_equals(entries['border-left-color'].cssText, 'lightcoral');
assert_equals(entries['border-image-source'].cssText, 'initial');
- assert_equals(entries['border-image-slice'].cssText, 'initial');
+ assert_equals(entries['border-image-slice'].cssText, 'initial');
assert_equals(entries['border-image-width'].cssText, 'initial');
assert_equals(entries['border-image-outset'].cssText, 'initial');
assert_equals(entries['border-image-repeat'].cssText, 'initial');
@@ -95,9 +95,12 @@ test(function() {
var entries = [...testElement.styleMap.values()];
assert_equals(entries.length, 1);
- assert_equals(entries[0].constructor, CSSStyleValue);
- assert_equals(entries[0].cssText, 'var(--bg-color)');
-}, "Variable values come out as CSSStyleValues");
+ assert_equals(entries[0].constructor, CSSTokenStreamValue);
+ assert_equals(entries[0].cssText, '--bg-color');
+ assert_equals([...entries[0]].length, 1);
+ assert_equals([...entries[0]][0].variable, "--bg-color");
+ assert_equals([...entries[0]][0].fallback, null);
+}, "Variable values come out as CSSTokenStreamValues");
test(function() {
testElement.style = '';
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/typedcssom/inlinestyle/tokenStreamValue.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698