| Index: third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html
|
| index 8f3fb6dba26f5fa9b5523ff197c8693b0773f661..7755f5bfb019ef451c6d5ab010e1ee47c6a9f72f 100644
|
| --- a/third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html
|
| @@ -37,7 +37,11 @@ test(function() {
|
| }, 'Unsupported and unserializable property returns null.');
|
|
|
| test(function() {
|
| - assert_false(computedStyleMap.has('max-zoom'));
|
| + assert_throws(null, function() { computedStyleMap.get('bananas'); });
|
| +}, 'get() throws for an invalid property.');
|
| +
|
| +test(function() {
|
| + assert_false(computedStyleMap.has('-webkit-mask'));
|
| }, 'has() return false for an unsupported property.');
|
|
|
| test(function() {
|
| @@ -59,4 +63,11 @@ test(function() {
|
| assert_true(computedStyleMap.has('width'));
|
| }, 'has() returns true for a supported property.');
|
|
|
| +test(function() {
|
| + testElement.style.width = '100px';
|
| + assert_equals(computedStyleMap.get('width').cssText, '100px');
|
| + testElement.style.display = 'none';
|
| + assert_equals(computedStyleMap.get('width').cssText, '100px');
|
| +}, 'get() returns correct values for an element with display: none.');
|
| +
|
| </script>
|
|
|