| Index: third_party/WebKit/LayoutTests/typedcssom/inlineStylePropertyMap_getProperties.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlineStylePropertyMap_getProperties.html b/third_party/WebKit/LayoutTests/typedcssom/inlineStylePropertyMap_getProperties.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..609f99f80204f919b079cf398b3b8433ee98be93
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/inlineStylePropertyMap_getProperties.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +
|
| +<div id="testElement"></div>
|
| +
|
| +<script>
|
| +
|
| +test(function() {
|
| + testElement.style = '';
|
| + assert_array_equals([], testElement.styleMap.getProperties());
|
| +
|
| + testElement.styleMap.set('width', new SimpleLength(10, 'px'));
|
| + assert_array_equals(['width'], testElement.styleMap.getProperties());
|
| +
|
| + // Check that accessing doesn't add spurious results.
|
| + testElement.styleMap.get('height');
|
| + assert_array_equals(['width'], testElement.styleMap.getProperties());
|
| +
|
| + testElement.styleMap.delete('width');
|
| + assert_array_equals([], testElement.styleMap.getProperties());
|
| +}, "getProperties returns only the properties that have been set in the StyleMap");
|
| +
|
| +</script>
|
|
|