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

Side by Side Diff: LayoutTests/svg/dom/remove-use-target-element-indirectly.html

Issue 298873003: SVG: SVGAnimateElement should not cache |m_animatedElements| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove more asserts Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/dom/remove-use-target-element-indirectly-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 jsTestIsAsync = true;
5 description("Removing animated use target indirectly from the document should no t cause crash.");
6
7 function loadedSVGToBeMoved()
8 {
9 debug("loaded SVG to be moved");
10
11 moveFromOtherToLocal();
12 }
13
14 var count = 0;
15 function moveFromOtherToLocal()
16 {
17 if (++count > 3)
18 finishJSTest();
19
20 var source = document.getElementById("otherWindow").contentDocument;
21 var defs = source.getElementById("defs");
22
23 var target = document.getElementById("localWindow");
24 target.appendChild(defs);
25
26 debug("other -> local");
27 window.requestAnimationFrame(moveFromLocalToOther);
28 }
29
30 function moveFromLocalToOther()
31 {
32 var source = document.getElementById("localWindow");
33 var defs = source.getElementById("defs");
34
35 var target = document.getElementById("otherWindow").contentDocument.document Element;
36 target.appendChild(defs);
37
38 debug("local -> other");
39 window.requestAnimationFrame(moveFromOtherToLocal);
40 }
41 </script>
42 <iframe id="otherWindow" src="resources/svg-with-animate-use.svg" onload="loaded SVGToBeMoved()"></iframe>
43 <svg id="localWindow">
44 <use xlink:href="#template" />
45 </svg>
46 <p>Test pass if no crash.</p>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dom/remove-use-target-element-indirectly-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698