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..95e79edf32c80843a556b43e8139ed79fa7c7fed |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/border-top-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.borderTop = '10px solid #000'; |
+ |
+ assert_equals('10px', computedStyleMap.get('border-top-width').cssString); |
+}, "Getting a simple border-top-width"); |
+ |
+test(function() { |
+ testElement.style.borderTop = '10px solid #000'; |
+ |
+ var result = computedStyleMap.getAll('border-top-width'); |
+ assert_equals(1, result.length); |
+ assert_equals('10px', result[0].cssString); |
+}, "getAll border-top-width"); |
+ |
+</script> |