blob: 3ac0918c6d237f9d67004ddc24c2fac5fb4ea0b9 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("This tests SVGAnimatedListPropertyTearOff containing SVGTransform don't crash if modified after contextElement goes out of scope.");
var pattern = document.createElementNS("http://www.w3.org/2000/svg","pattern");
var baseVal = pattern.patternTransform.baseVal;
pattern = null;
gc();
var svgTransform = document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform();
baseVal.insertItemBefore(svgTransform, 0);
gc();
debug("This test passes if we don't crash.");
</script>
<script src="../../resources/js-test-post.js"></script>