Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: third_party/WebKit/LayoutTests/resources/check-layout-th.js

Issue 1729073002: Update SVG tests ahead of offset* removal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update flexitem.html and grid-item-display.html too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698