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

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

Issue 2005683002: Typed CSSOM: Rename SimpleLength to CSSSimpleLength (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix SimpleLengthType compile errors 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 3ee2574011b6dca944505e8fe58a0a4e4d1d935d..c882278b6950821e66d463251ddc8746b233b988 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_setGet.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_setGet.html
@@ -7,14 +7,14 @@
<script>
test(function() {
- testElement.styleMap.set('width', new SimpleLength(10, 'px'));
+ testElement.styleMap.set('width', new CSSSimpleLength(10, 'px'));
assert_equals(testElement.styleMap.get('width').cssString, '10px');
}, "Setting and getting round trips");
test(function() {
- testElement.styleMap.set('WIDTH', new SimpleLength(40, 'px'));
+ testElement.styleMap.set('WIDTH', new CSSSimpleLength(40, 'px'));
assert_equals(testElement.styleMap.get('WiDtH').cssString, '40px');
- testElement.styleMap.set('wIdTh', new SimpleLength(50, 'px'));
+ testElement.styleMap.set('wIdTh', new CSSSimpleLength(50, 'px'));
assert_equals(testElement.styleMap.get('width').cssString, '50px');
}, "Setting and getting is not case sensitive");
@@ -24,7 +24,7 @@ test(function() {
}, "Changes to element.style are reflected in the element.styleMap");
test(function() {
- testElement.styleMap.set('width', new SimpleLength(30, 'px'));
+ testElement.styleMap.set('width', new CSSSimpleLength(30, 'px'));
assert_equals(testElement.style.width, '30px');
}, "Changes to element.styleMap are reflected in element.style");
@@ -35,7 +35,7 @@ test(function() {
}, "Attempting to set an invalid type for a property throws");
test(function() {
- testElement.styleMap.set('width', new SimpleLength(2, 'px'));
+ testElement.styleMap.set('width', new CSSSimpleLength(2, 'px'));
assert_throws(new TypeError(), function() {
testElement.styleMap.set('width', new CSSNumberValue(4));
});

Powered by Google App Engine
This is Rietveld 408576698