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

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-14T12:59 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..59225f3457db130fadd67b4ee680c083f60491bd
--- /dev/null
+++ b/LayoutTests/editing/deleting/delete-uneditable-style.html
@@ -0,0 +1,26 @@
+<script src="../../resources/dump-as-markup.js"></script>
+<script>
+Markup.description('Test case for crash bug http://crbug.com/177470');
+Markup.noAutoDump();
+function $(id) { return document.getElementById(id); }
+window.addEventListener('load', function() {
ojan 2013/05/14 05:27:22 This is fine. Another way you could do this would
yosin_UTC9 2013/05/14 06:17:08 Done.
+ var range = document.createRange();
+ range.setStart($('start'));
+ range.setEnd($('end'), NaN);
+ getSelection().addRange(range);
+ document.execCommand('delete', null, '');
+ Markup.dump($('test'));
+ Markup.notifyDone();
+});
+</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>
« 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