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> |