blob: 436aaef9044b7d3361bc4eb231fe2e3e9fba4c98 [file] [log] [blame]
// [Name] SVGRectElement-svgdom-width-prop.js
// [Expected rendering result] green rect size 200x200 at 0x0 - and a series of PASS messages
description("Tests dynamic updates of the 'width' property of the SVGRectElement object")
createSVGTestCase();
var rectElement = createSVGElement("rect");
rectElement.setAttribute("x", "0");
rectElement.setAttribute("y", "0");
rectElement.setAttribute("width", "50");
rectElement.setAttribute("height", "200");
rectElement.setAttribute("fill", "green");
rootSVGElement.appendChild(rectElement);
shouldBe("rectElement.width.baseVal.value", "50");
function repaintTest() {
rectElement.width.baseVal.value = 200;
shouldBe("rectElement.width.baseVal.value", "200");
}
var successfullyParsed = true;