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