blob: 09eddbd557aaf4577f9ad7342226b64f7ac13cf8 [file] [log] [blame]
// [Name] SVGCircleElement-svgdom-r-prop.js
// [Expected rendering result] green circle - and a series of PASS mesages
description("Tests dynamic updates of the 'r' property of the SVGCircleElement object")
createSVGTestCase();
var circleElement = createSVGElement("circle");
circleElement.setAttribute("cx", "150");
circleElement.setAttribute("cy", "150");
circleElement.setAttribute("r", "0");
circleElement.setAttribute("fill", "green");
rootSVGElement.appendChild(circleElement);
shouldBe("circleElement.r.baseVal.value", "0");
function executeTest() {
circleElement.r.baseVal.value = "150";
shouldBe("circleElement.r.baseVal.value", "150");
waitForClickEvent(circleElement);
triggerUpdate();
}
executeTest();
var successfullyParsed = true;