Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: LayoutTests/svg/custom/unicode-in-tspan-multi-svg-crash.html

Issue 15183002: Clear SVGInlineTextBox fragments when the text changes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698