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

Unified Diff: LayoutTests/editing/deleting/delete-uneditable-style.html

Issue 14995014: Don't move uneditable style and link elements during deletion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-05-14T15:16 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
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/delete-uneditable-style-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/deleting/delete-uneditable-style.html
diff --git a/LayoutTests/editing/deleting/delete-uneditable-style.html b/LayoutTests/editing/deleting/delete-uneditable-style.html
new file mode 100644
index 0000000000000000000000000000000000000000..29fb4fd5c98082c41187a28f6adafc83b359028e
--- /dev/null
+++ b/LayoutTests/editing/deleting/delete-uneditable-style.html
@@ -0,0 +1,22 @@
+<script src="../../resources/dump-as-markup.js"></script>
+<div contentEditable id="test">
+ <span id="start">start</span>
+ editable-1
+ <div contentEditable="false">
+ <style>#end { color: red; }</style>
+ <link type="foo" href="bar">
+ uneditable
+ </div>
+ editable-2
+<span id="end">end</span>
+</div>
+<script>
+Markup.description('Test case for crash bug http://crbug.com/177470');
+function $(id) { return document.getElementById(id); }
+var range = document.createRange();
+range.setStart($('start'));
+range.setEnd($('end'), NaN);
+getSelection().addRange(range);
+document.execCommand('delete', null, '');
+Markup.dump($('test'));
+</script>
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/delete-uneditable-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698