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

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

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: rebase Created 3 years, 7 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_append.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_append.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_append.html
index 045c4f21a40977651fd68c4bbef7ac8b31d085bb..e1b9bfe6d69503912ab9fe6b3be6b9d8bc38f298 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_append.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_append.html
@@ -9,20 +9,20 @@
// Append
test(function() {
assert_throws(new TypeError(), function() {
- testElement.styleMap.append('width', new CSSSimpleLength(60, 'px'));
+ testElement.styleMap.append('width', new CSSUnitValue(60, 'px'));
});
}, "Attempting to append to a property that doesn't support multiple values throws");
test(function() {
// TODO(meade): Use a property that supports multiple values when that is available.
assert_throws(new TypeError(), function() {
- testElement.styleMap.append('width', new CSSNumberValue(70));
+ testElement.styleMap.append('width', new CSSUnitValue(70, 'number'));
});
}, "Appending an invalid type to a property throws");
test(function() {
assert_throws(new TypeError(), function() {
- testElement.styleMap.append('lemons', new CSSNumberValue(6));
+ testElement.styleMap.append('lemons', new CSSUnitValue(6, 'number'));
});
}, "Attempting to append to an invalid property throws");

Powered by Google App Engine
This is Rietveld 408576698