blob: 41d9a610f2283c420861f721e69b2e08446af0db [file] [log] [blame]
// [Name] SVGCircleElement-dom-cy-attr.js
// [Expected rendering result] unclipped green circle - and a series of PASS messages
description("Tests dynamic updates of the 'cy' attribute of the SVGCircleElement object")
createSVGTestCase();
var circleElement = createSVGElement("circle");
circleElement.setAttribute("cx", "150");
circleElement.setAttribute("cy", "-50");
circleElement.setAttribute("r", "150");
circleElement.setAttribute("fill", "green");
rootSVGElement.appendChild(circleElement);
shouldBeEqualToString("circleElement.getAttribute('cy')", "-50");
function repaintTest() {
circleElement.setAttribute("cy", "150");
shouldBeEqualToString("circleElement.getAttribute('cy')", "150");
}
var successfullyParsed = true;