summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/svg/dom/SVGAnimatedListPropertyTearOff-crash-2.html
blob: 1df0bc38425350b558f15d189d51a3da6530671a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<body>
<script src="../../fast/js/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="../../fast/js/resources/js-test-post.js"></script>
</body>
</html>