chromium/third_party/blink/web_tests/svg/dynamic-updates/script-tests/SVGEllipseElement-dom-ry-attr.js

// [Name] SVGEllipseElement-dom-ry-attr.js
// [Expected rendering result] with rx = ry (in fact a circle) - and a series of PASS messages

description("Tests dynamic updates of the 'ry' attribute of the SVGEllipseElement object")
createSVGTestCase();

var ellipseElement = createSVGElement("ellipse");
ellipseElement.setAttribute("cx", "150");
ellipseElement.setAttribute("cy", "150");
ellipseElement.setAttribute("rx", "150");
ellipseElement.setAttribute("ry", "10");
ellipseElement.setAttribute("fill", "green");

rootSVGElement.appendChild(ellipseElement);
shouldBeEqualToString("ellipseElement.getAttribute('ry')", "10");

function repaintTest() {
    ellipseElement.setAttribute("ry", "150");
    shouldBeEqualToString("ellipseElement.getAttribute('ry')", "150");
}

var successfullyParsed = true;