blob: c5ae09864f8020104b6011f361c666bf43d4d489 [file] [log] [blame]
// [Name] SVGImageElement-svgdom-y-prop.js
// [Expected rendering result] image at 0x0 size 200x200 - and a series of PASS messages
description("Tests dynamic updates of the 'y' property of the SVGImageElement object")
createSVGTestCase();
var imageElement = createSVGElement("image");
imageElement.setAttributeNS(xlinkNS, "xlink:href", "../custom/resources/green-checker.png");
imageElement.setAttribute("preserveAspectRatio", "none");
imageElement.setAttribute("x", "0");
imageElement.setAttribute("y", "-190");
imageElement.setAttribute("width", "200");
imageElement.setAttribute("height", "200");
rootSVGElement.appendChild(imageElement);
shouldBe("imageElement.y.baseVal.value", "-190");
function repaintTest() {
imageElement.y.baseVal.value = 0;
shouldBe("imageElement.y.baseVal.value", "0");
}
var successfullyParsed = true;