OLD | NEW |
1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3
.org/1999/xlink"> | 1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3
.org/1999/xlink"> |
2 <text id="text"> | 2 <text id="text"> |
3 bar | 3 bar |
4 <script> | 4 <script> |
5 if (window.layoutTestController) | 5 if (window.layoutTestController) |
6 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
7 | 7 |
8 // This triggers a layout before adding the #text node. | 8 // This triggers a layout before adding the #text node. |
9 document.getElementById('text').scrollIntoView('foo'); | 9 document.getElementById('text').scrollIntoView('foo'); |
10 | 10 |
11 var text = document.getElementById('text'); | 11 var text = document.getElementById('text'); |
12 text.insertBefore(document.createTextNode('foo'), text.firstChild); | 12 text.insertBefore(document.createTextNode('foo'), text.firstChild); |
13 | 13 |
14 // This triggers a layout after adding the #text node to fire the ASSERT
. | 14 // This triggers a layout after adding the #text node to fire the ASSERT
. |
15 document.getElementById('text').scrollIntoView('foo'); | 15 document.getElementById('text').scrollIntoView('foo'); |
16 </script> | 16 </script> |
17 </text> | 17 </text> |
18 <text x="10" y="50">Test for bug <a xlink:href="https://bugs.webkit.org/show_bug
.cgi?id=63076">63076</a>: Assertion failure in RenderSVGInlineText::characterSta
rtsNewTextChunk</text> | 18 <text x="10" y="50">Test for bug <a xlink:href="https://bugs.webkit.org/show_bug
.cgi?id=63076">63076</a>: Assertion failure in RenderSVGInlineText::characterSta
rtsNewTextChunk</text> |
19 <text x="10" y="100">This test passes if it does not crash</text> | 19 <text x="10" y="100">This test passes if it does not crash</text> |
20 </svg> | 20 </svg> |
OLD | NEW |