Index: third_party/WebKit/LayoutTests/typedcssom/computedstyle/border-top-width.html |
diff --git a/third_party/WebKit/LayoutTests/typedcssom/computedstyle/border-top-width.html b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/border-top-width.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a8850f78d7e93d15a1a32594a4f938cc281fb6ce |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/border-top-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.borderTop = '10px solid #000'; |
+ |
+ var result = computedStyleMap.get('border-top-width'); |
+ assert_true(result instanceof SimpleLength); |
+ assert_equals(result.cssString, '10px'); |
+}, "Getting a 10px border-top-width returns a SimpleLength"); |
+ |
+test(function() { |
+ testElement.style.borderTop = '20px solid #000'; |
+ |
+ var result = computedStyleMap.getAll('border-top-width'); |
+ assert_equals(result.length, 1); |
+ assert_equals(result[0].cssString, '20px'); |
+}, "getAll for border-top-width returns a single value"); |
+ |
+</script> |