blob: 9bb1a7a3d3c3b1fe354f4661daff91ea7b284b80 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script>
description("This tests SVGAnimatedListPropertyTearOff don't crash if modified after contextElement goes out of scope.");
var text = document.createElementNS("http://www.w3.org/2000/svg","text");
var baseVal = text.dx.baseVal;
text = null;
gc();
var svgLength = document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGLength();
baseVal.appendItem(svgLength);
gc();
debug("This test passes if we don't crash.");
</script>
</body>
</html>