| Index: third_party/WebKit/LayoutTests/typedcssom/inlineStylePropertyMap.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlineStylePropertyMap.html b/third_party/WebKit/LayoutTests/typedcssom/inlineStylePropertyMap.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..562be042ca9f58460bf0dddf9e71dbbbae9d3ac2
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/inlineStylePropertyMap.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +
|
| +<div id="testElement"></div>
|
| +
|
| +<script>
|
| +
|
| +test(function() {
|
| + assert_equals(null, testElement.styleMap.get('width'));
|
| +
|
| + testElement.styleMap.set('width', new SimpleLength(10, 'px'));
|
| + assert_equals('10px', testElement.styleMap.get('width').cssString);
|
| +}, "Setting and getting round trips.");
|
| +
|
| +test(function() {
|
| + testElement.style.width = '10px';
|
| + assert_equals(new SimpleLength(10, 'px'), testElement.styleMap.get('width'));
|
| +}, "Changes to element.style are reflected in the element.styleMap");
|
| +
|
| +test(function() {
|
| + testElement.styleMap.set('width', new SimpleLength(10, 'px'));
|
| + assert_equals('10px', testElement.style.width);
|
| +}, "changes to element.styleMap are reflected in element.style");
|
| +
|
| +</script>
|
|
|