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

Side by Side Diff: LayoutTests/editing/execCommand/editing-nontext-node-crash.xhtml

Issue 3027024: Merge 63773 - 2010-07-20 Abhishek Arya <inferno@chromium.org>... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/472/
Patch Set: Created 10 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/editing-nontext-node-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <script>//<![CDATA[
4 if (window.layoutTestController)
5 layoutTestController.dumpAsText();
6
7 var selection = window.getSelection();
8 function runEditingTest() {
9 var elem = document.getElementById("test2");
10 selection.setPosition(elem, 0);
11 for (i = 0; i < 21; i++)
12 selection.modify("move", "forward", "character");
13 document.execCommand("Delete");
14
15 // Test completed without crash.
16 document.getElementById("test1").removeChild(elem);
17 document.getElementById("result").innerHTML = "PASS";
18 }
19 //]]></script>
20 </head>
21 <body onload="runEditingTest()">
22 <p>This tests passes if it does not crash.</p>
23 <div id="result"></div>
24 <div id="test1" contenteditable="">
25 <span id="test2">Something Something <br/>
26 <svg xmlns="http://www.w3.org/2000/svg">
27 <html xmlns="http://www.w3.org/1999/xhtml">
28 <body>
29 </body>
30 </html>
31 </svg>
32 </span>
33 </div>
34 </body>
35 </html>
36
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/editing-nontext-node-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698