blob: 0bc999d50c820e4618652d24191b3d1f25a41e68 [file] [log] [blame]
// [Name] SVGRectElement-dom-x-attr.js
// [Expected rendering result] green rect size 200x200 at 0x0 - and a series of PASS messages
description("Tests dynamic updates of the 'x' attribute of the SVGRectElement object")
createSVGTestCase();
var rectElement = createSVGElement("rect");
rectElement.setAttribute("x", "-150");
rectElement.setAttribute("y", "0");
rectElement.setAttribute("width", "200");
rectElement.setAttribute("height", "200");
rectElement.setAttribute("fill", "green");
rootSVGElement.appendChild(rectElement);
shouldBeEqualToString("rectElement.getAttribute('x')", "-150");
function repaintTest() {
rectElement.setAttribute("x", "0");
shouldBeEqualToString("rectElement.getAttribute('x')", "0");
}
var successfullyParsed = true;