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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/editing-nontext-node-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/editing-nontext-node-crash.xhtml
===================================================================
--- LayoutTests/editing/execCommand/editing-nontext-node-crash.xhtml (revision 0)
+++ LayoutTests/editing/execCommand/editing-nontext-node-crash.xhtml (revision 53679)
@@ -0,0 +1,36 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <script>//<![CDATA[
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ var selection = window.getSelection();
+ function runEditingTest() {
+ var elem = document.getElementById("test2");
+ selection.setPosition(elem, 0);
+ for (i = 0; i < 21; i++)
+ selection.modify("move", "forward", "character");
+ document.execCommand("Delete");
+
+ // Test completed without crash.
+ document.getElementById("test1").removeChild(elem);
+ document.getElementById("result").innerHTML = "PASS";
+ }
+ //]]></script>
+ </head>
+ <body onload="runEditingTest()">
+ <p>This tests passes if it does not crash.</p>
+ <div id="result"></div>
+ <div id="test1" contenteditable="">
+ <span id="test2">Something Something <br/>
+ <svg xmlns="http://www.w3.org/2000/svg">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <body>
+ </body>
+ </html>
+ </svg>
+ </span>
+ </div>
+ </body>
+</html>
+
« 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