| Index: third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9704898d7294dd892d46b4175c1cb3407b0c0083
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html
|
| @@ -0,0 +1,27 @@
|
| +<!DOCTYPE html>
|
| +<script src='../../resources/testharness.js'></script>
|
| +<script src='../../resources/testharnessreport.js'></script>
|
| +
|
| +<div id="testElement"></div>
|
| +
|
| +<script>
|
| +
|
| +var computedStyleMap = getComputedStyleMap(testElement);
|
| +
|
| +test(function() {
|
| + testElement.style.width = '10px';
|
| +
|
| + var result = computedStyleMap.get('width');
|
| + assert_true(result instanceof SimpleLength);
|
| + assert_equals(result.cssString, '10px');
|
| +}, "Getting a 10px width results in a SimpleLength");
|
| +
|
| +test(function() {
|
| + testElement.style.width = '20px';
|
| +
|
| + var result = computedStyleMap.getAll('width');
|
| + assert_equals(result.length, 1);
|
| + assert_equals(result[0].cssString, '20px');
|
| +}, "getAll for width returns a single value");
|
| +
|
| +</script>
|
|
|