haikuwebkit/LayoutTests/svg/dom/SVGPolygonElement-baseVal-l...

21 lines
572 B
HTML

<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function go() {
var oSVGPolygon = document.createElementNS("http://www.w3.org/2000/svg", "polygon");
var oSVGPath = document.createElementNS("http://www.w3.org/2000/svg", "path");
var oSVGPoint1 = oSVGPath.getPointAtLength(0);
oSVGPolygon.points.initialize(oSVGPoint1);
oSVGPolygon.points.removeItem(-9223372036854775802);
alert("Accessing old oSVGPoint1.x: " + oSVGPoint1.x);
}
</script>
</head>
<body onload="go()">
This test passes if it doesn't crash.
</body>
</html>