blob: 5952a14ae183fc3fb8e58c93c6df7e56d1ee251e [file] [log] [blame]
// [Name] SVGImageElement-svgdom-height-prop.js
// [Expected rendering result] image at 0x0 size 200x200 - and a series of PASS messages
description("Tests dynamic updates of the 'height' 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", "0");
imageElement.setAttribute("width", "200");
imageElement.setAttribute("height", "100");
rootSVGElement.appendChild(imageElement);
shouldBe("imageElement.height.baseVal.value", "100");
function repaintTest() {
imageElement.height.baseVal.value = 200;
shouldBe("imageElement.height.baseVal.value", "200");
}
var successfullyParsed = true;