blob: 02cf5a15975de52825cd4cd61dfbfa7e2b6fb140 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="resources/SVGTestCase.js"></script>
<script src="../../resources/js-test-pre.js"></script>
<script src="../../fast/repaint/resources/repaint.js"></script>
</head>
<body onload="runRepaintTest()">
<h1>SVG 1.1 dynamic update tests</h1>
<p id="description"></p>
<div id="console"></div>
<script>
// [Name] SVGEllipseElement-svgdom-cx-prop.js
// [Expected rendering result] unclipped green ellipse - and a series of PASS messages
description("Tests dynamic updates of the 'cx' property of the SVGEllipseElement object")
createSVGTestCase();
var ellipseElement = createSVGElement("ellipse");
ellipseElement.setAttribute("cx", "-50");
ellipseElement.setAttribute("cy", "150");
ellipseElement.setAttribute("rx", "100");
ellipseElement.setAttribute("ry", "150");
ellipseElement.setAttribute("fill", "green");
rootSVGElement.appendChild(ellipseElement);
shouldBe("ellipseElement.cx.baseVal.value", "-50");
function repaintTest() {
ellipseElement.cx.baseVal.value = 150;
shouldBe("ellipseElement.cx.baseVal.value", "150");
completeTest();
}
var successfullyParsed = true;
</script>
</body>
</html>