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

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

Issue 1957213002: Typed CSSOM: Rename NumberValue to CSSNumberValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix inline style tests Created 4 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_setGet.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_setGet.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_setGet.html
index f5c6cb327e3002e0f7fe56614bd45024fee99931..3ee2574011b6dca944505e8fe58a0a4e4d1d935d 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_setGet.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_setGet.html
@@ -30,21 +30,21 @@ test(function() {
test(function() {
assert_throws(new TypeError(), function() {
- testElement.styleMap.set('width', new NumberValue(4));
+ testElement.styleMap.set('width', new CSSNumberValue(4));
});
}, "Attempting to set an invalid type for a property throws");
test(function() {
testElement.styleMap.set('width', new SimpleLength(2, 'px'));
assert_throws(new TypeError(), function() {
- testElement.styleMap.set('width', new NumberValue(4));
+ testElement.styleMap.set('width', new CSSNumberValue(4));
});
assert_equals(testElement.styleMap.get('width').cssString, '2px');
}, "Attempting to set an invalid type for a property does not change the value");
test(function() {
assert_throws(new TypeError(), function() {
- testElement.styleMap.set('lemons', new NumberValue(4));
+ testElement.styleMap.set('lemons', new CSSNumberValue(4));
});
assert_throws(new TypeError(), function() {
testElement.styleMap.set('lemons', null);

Powered by Google App Engine
This is Rietveld 408576698