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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/animate-svgsvgelement.html

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/svg/custom/animate-svgsvgelement.html
diff --git a/third_party/WebKit/LayoutTests/svg/custom/animate-svgsvgelement.html b/third_party/WebKit/LayoutTests/svg/custom/animate-svgsvgelement.html
index 6c227679a96818d92335ea966823488c92aa3eae..20d6fd9e6f8a8889a9200802de599260d55393b4 100644
--- a/third_party/WebKit/LayoutTests/svg/custom/animate-svgsvgelement.html
+++ b/third_party/WebKit/LayoutTests/svg/custom/animate-svgsvgelement.html
@@ -7,13 +7,13 @@
var height_test = async_test("Test height");
function do_width_test() {
width_test.step(function() {
- assert_equals(document.querySelector('svg').offsetWidth, 0, "width should be zero when the animation has ended.");
+ assert_equals(document.querySelector('svg').getBoundingClientRect().width, 0, "width should be zero when the animation has ended.");
});
width_test.done();
}
function do_height_test() {
height_test.step(function() {
- assert_equals(document.querySelector('svg').offsetHeight, 0, "height should be zero when the animation has ended.");
+ assert_equals(document.querySelector('svg').getBoundingClientRect().height, 0, "height should be zero when the animation has ended.");
});
height_test.done();
}

Powered by Google App Engine
This is Rietveld 408576698