OLD | NEW |
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 description("This tests SVGAnimatedListPropertyTearOff don't crash if modifi
ed after contextElement goes out of scope."); | 6 description("This tests SVGAnimatedListPropertyTearOff don't crash if modifi
ed after contextElement goes out of scope."); |
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 var baseVal = text.dx.baseVal; | 9 var baseVal = text.dx.baseVal; |
10 text = null; | 10 text = null; |
11 gc(); | 11 gc(); |
12 | 12 |
13 var svgLength = document.createElementNS("http://www.w3.org/2000/svg","svg")
.createSVGLength(); | 13 var svgLength = document.createElementNS("http://www.w3.org/2000/svg","svg")
.createSVGLength(); |
14 baseVal.appendItem(svgLength); | 14 baseVal.appendItem(svgLength); |
15 gc(); | 15 gc(); |
16 | 16 |
17 debug("This test passes if we don't crash."); | 17 debug("This test passes if we don't crash."); |
18 </script> | 18 </script> |
19 <script src="../../fast/js/resources/js-test-post.js"></script> | |
20 </body> | 19 </body> |
21 </html> | 20 </html> |
OLD | NEW |