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

Side by Side Diff: LayoutTests/svg/dom/SVGListPropertyTearOff-gccrash.html

Issue 24863002: Revert 157959 "Introduce a new reference graph to SVG*TearOffs." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 2 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/SVGListPropertyTearOff-gccrash-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 <html>
3 <body>
4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script>
6 gc();
7
8 var text = document.createElementNS("http://www.w3.org/2000/svg", "text");
9
10 var initialNumberOfNodes;
11 if (internals)
12 initialNumberOfNodes = internals.numberOfLiveNodes();
13
14 var rotate = text.rotate;
15 text = null;
16
17 gc();
18 // Assert that the <text> svg element is alive while a tear-off is alive.
19 if (internals)
20 shouldBe('internals.numberOfLiveNodes()', 'initialNumberOfNodes');
21
22 // Accessing to properties of deleted SVGElement should not cause crash
23 rotate;
24 rotate.animVal;
25 try { rotate.animVal.getItem(0); } catch(e) {}
26 </script>
27 <div>PASS: Did not crash.</div>
28 <script src="../../fast/js/resources/js-test-post.js"></script>
29 </body>
30 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dom/SVGListPropertyTearOff-gccrash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698