Index: LayoutTests/svg/custom/unicode-in-tspan-multi-svg-crash.html |
diff --git a/LayoutTests/svg/custom/unicode-in-tspan-multi-svg-crash.html b/LayoutTests/svg/custom/unicode-in-tspan-multi-svg-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1f156c6c546d8d6dc349005f7650079c2b6371ec |
--- /dev/null |
+++ b/LayoutTests/svg/custom/unicode-in-tspan-multi-svg-crash.html |
@@ -0,0 +1,37 @@ |
+<html> |
leviw_travelin_and_unemployed
2013/05/14 23:43:41
Doctype?
Stephen Chennney
2013/05/15 00:46:37
Done.
|
+ <script> |
pdr.
2013/05/14 23:51:36
Nit: please unify the indentation of this file.
Stephen Chennney
2013/05/15 00:46:37
Done.
|
+ if (window.testRunner) |
+ testRunner.dumpAsText(false); |
+ |
+ onload = function() { |
+ tSpanElement = document.getElementById('tSpanInFirstRoot'); |
+ tSpanElement.appendChild(document.createTextNode(unescape('%ufe9e%ue28f%ue47e'))); |
+ |
+ document.body.offsetTop; |
+ document.body.style.zoom=0.9; |
+ |
+ document.designMode='on'; |
+ filterInFirstRoot = document.getElementById('filterInFirstRoot'); |
+ useElement = document.getElementById('useElement'); |
+ window.getSelection().setBaseAndExtent(filterInFirstRoot, useElement, 5); |
+ document.execCommand('ForwardDelete'); |
+ document.designMode='off'; |
+ } |
+ </script> |
+<body> |
+ <svg xmlns="http://www.w3.org/2000/svg"> |
+ <text> |
pdr.
2013/05/14 23:51:36
The SVG content model should make this filter a no
Stephen Chennney
2013/05/15 00:46:37
It probably is a no-op, but it affects the selecti
|
+ <filter id="filterInFirstRoot"/> |
+ <tspan id="tSpanInFirstRoot"/> |
+ </text> |
+ <path filter="url(#filterInSecondRoot)"/> |
+ </svg> |
+ |
+ <svg xmlns="http://www.w3.org/2000/svg"> |
+ <use id="useElement"/> |
+ <filter id="filterInSecondRoot"/> |
+ </svg> |
+ |
+ <p>Test Passes if there is no crash in Debug or Asan builds. There should be no characters preceding "Test".</p> |
+</body> |
+</html> |