Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / tspan-getComputedTextLength.svg
blob29fddc8bf1bd4ca2666ce3cc9a884395422814c6
1 <?xml version="1.0" standalone="no"?>
2 <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
3 <text y="50" id='x'><tspan id='y'>Test</tspan></text>
4 <text y="100" id='status'/>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 var length1 = document.getElementById('x').getComputedTextLength();
11 var length2 = document.getElementById('y').getComputedTextLength();
12 if (length1 == length2) {
13 document.getElementById('status').textContent = "PASS";
14 } else {
15 document.getElementById('status').textContent = "FAIL";
17 </script>
18 </svg>