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

Unified Diff: third_party/WebKit/LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.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/animations/smil-scheduled-in-inactive-document-crash.html
diff --git a/third_party/WebKit/LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html b/third_party/WebKit/LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html
index c603a2d12ecba0211a400da7bdc13d935ced50d2..ed875bf01c63589fefacb495a3554bf0d5438d21 100644
--- a/third_party/WebKit/LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html
+++ b/third_party/WebKit/LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html
@@ -18,9 +18,10 @@ var svg = document.querySelector("svg");
svg.pauseAnimations();
setTimeout(function() {
- eventSender.mouseMoveTo(svg.offsetLeft + 20, svg.offsetTop + 20);
+ var rect = svg.getBoundingClientRect();
+ eventSender.mouseMoveTo(rect.left + 20, rect.top + 20);
eventSender.mouseDown();
eventSender.mouseUp();
+ finishJSTest();
}, 0);
-finishJSTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698