blob: 29fddc8bf1bd4ca2666ce3cc9a884395422814c6 [file] [log] [blame]
<?xml version="1.0" standalone="no"?>
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<text y="50" id='x'><tspan id='y'>Test</tspan></text>
<text y="100" id='status'/>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var length1 = document.getElementById('x').getComputedTextLength();
var length2 = document.getElementById('y').getComputedTextLength();
if (length1 == length2) {
document.getElementById('status').textContent = "PASS";
} else {
document.getElementById('status').textContent = "FAIL";
}
</script>
</svg>