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..19c0b86d559a75d080f6d562c793bef9e1b85fd9 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html |
@@ -0,0 +1,25 @@ |
+<!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'; |
+ |
+ assert_equals(computedStyleMap.get('width').cssString, '10px'); |
+}, "Getting a simple width"); |
+ |
+test(function() { |
+ testElement.style.width = '10px'; |
+ |
+ var result = computedStyleMap.getAll('width'); |
+ assert_equals(result.length, 1); |
+ assert_equals(result[0].cssString, '10px'); |
+}, "getAll width"); |
+ |
+</script> |