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

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

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

Powered by Google App Engine
This is Rietveld 408576698