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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src='../../resources/js-test.js'></script> 2 <script src='../../resources/js-test.js'></script>
3 <body> 3 <body>
4 <svg width=100 height=100> 4 <svg width=100 height=100>
5 <rect id="rect" x=10 y=10 width=30 height=30 fill="black"> 5 <rect id="rect" x=10 y=10 width=30 height=30 fill="black">
6 <set attributeName="width" to="60" begin="rect.click" dur="5s" /> 6 <set attributeName="width" to="60" begin="rect.click" dur="5s" />
7 </rect> 7 </rect>
8 </svg> 8 </svg>
9 <script> 9 <script>
10 window.jsTestIsAsync = true; 10 window.jsTestIsAsync = true;
11 description("SMIL animations scheduled in inactive document cause crash"); 11 description("SMIL animations scheduled in inactive document cause crash");
12 debug("PASS if no crash on debug builds"); 12 debug("PASS if no crash on debug builds");
13 13
14 if (!window.eventSender) 14 if (!window.eventSender)
15 testFailed("Please run this in content_shell --run-layout-test") 15 testFailed("Please run this in content_shell --run-layout-test")
16 16
17 var svg = document.querySelector("svg"); 17 var svg = document.querySelector("svg");
18 svg.pauseAnimations(); 18 svg.pauseAnimations();
19 19
20 setTimeout(function() { 20 setTimeout(function() {
21 eventSender.mouseMoveTo(svg.offsetLeft + 20, svg.offsetTop + 20); 21 var rect = svg.getBoundingClientRect();
22 eventSender.mouseMoveTo(rect.left + 20, rect.top + 20);
22 eventSender.mouseDown(); 23 eventSender.mouseDown();
23 eventSender.mouseUp(); 24 eventSender.mouseUp();
25 finishJSTest();
24 }, 0); 26 }, 0);
25 finishJSTest();
26 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698