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

Side by Side Diff: LayoutTests/svg/custom/delete-modified-text-in-defs-crash.svg

Issue 1167033002: Remove layout tests that run execCommand on non-HTML documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix doctype Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <svg id="svgRoot" xmlns="http://www.w3.org/2000/svg" onload="go()">
2 <defs>
3 <text>
4 <tspan id="tspan1" x="375"></tspan>
5 <tspan>PASS</tspan>
6 </text>
7 </defs>
8 <g><rect id="legendbox"/></g>
9 <script><![CDATA[
10 document.execCommand("SelectAll");
11 elem = document.getElementById("tspan1");
12 elem.removeAttribute("x");
13 range = document.createRange();
14 range.setStartBefore(document.getElementById("tspan1"));
15 range.setEndAfter(document.getElementById("legendbox"));
16 range.deleteContents();
17
18 if (window.testRunner)
19 testRunner.dumpAsText();
20
21 function go() {
22 var svgRoot = document.getElementById("svgRoot");
23 var passText = document.createElementNS("http://www.w3.org/2000/svg", "tex t");
24 var textContent = document.createTextNode("PASS");
25 passText.appendChild(textContent);
26 svgRoot.appendChild(passText);
27 }
28 ]]></script>
29 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/bug86781-expected.txt ('k') | LayoutTests/svg/custom/delete-modified-text-in-defs-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698