blob: 3398a07304cd6096ddcdec3563354d449c1f9f2d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="resources/SVGTestCase.js"></script>
<script src="../../resources/js-test-pre.js"></script>
<script src="../../fast/repaint/resources/repaint.js"></script>
</head>
<body onload="runRepaintTest()">
<h1>SVG 1.1 dynamic update tests</h1>
<p id="description"></p>
<div id="console"></div>
<script>
// [Name] SVGTextElement-svgdom-x-prop.js
// [Expected rendering result] Text message at 0x20 - and a series of PASS messages
description("Tests dynamic updates of the 'x' property of the SVGTextElement object")
createSVGTestCase();
var textElement = createSVGElement("text");
textElement.setAttribute("x", "50");
textElement.setAttribute("y", "20");
textElement.textContent = "Text content";
rootSVGElement.appendChild(textElement);
shouldBe("textElement.x.baseVal.getItem(0).value", "50");
function repaintTest() {
textElement.x.baseVal.getItem(0).value = 0;
shouldBe("textElement.x.baseVal.getItem(0).value", "0");
completeTest();
}
var successfullyParsed = true;
</script>
</body>
</html>