| 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);
|
|
|