Index: third_party/WebKit/LayoutTests/resources/check-layout-th.js |
diff --git a/third_party/WebKit/LayoutTests/resources/check-layout-th.js b/third_party/WebKit/LayoutTests/resources/check-layout-th.js |
index 07f7d5ded829e971fdbed452640a8438c9f602e4..3f257d4ac250e5f592bd463fb2a0d6a9f0fb0c8e 100644 |
--- a/third_party/WebKit/LayoutTests/resources/check-layout-th.js |
+++ b/third_party/WebKit/LayoutTests/resources/check-layout-th.js |
@@ -69,6 +69,11 @@ function checkExpectedValues(t, node, prefix) |
assert_tolerance(node.scrollHeight, expectedHeight, prefix + "scrollHeight"); |
} |
+ var expectedWidth = checkAttribute(output, node, "data-expected-bounding-client-rect-width"); |
+ if (expectedWidth) { |
+ assert_tolerance(node.getBoundingClientRect().width, expectedWidth, prefix + "getBoundingClientRect().width"); |
+ } |
+ |
var expectedOffset = checkAttribute(output, node, "data-total-x"); |
if (expectedOffset) { |
var totalLeft = node.clientLeft + node.offsetLeft; |