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

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-13T16:49 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..f37c7a37e63e108fa5cfd23d57d25f916419f946
--- /dev/null
+++ b/LayoutTests/editing/deleting/delete-uneditable-style.html
@@ -0,0 +1,26 @@
+<script src="../../fast/js/resources/js-test-pre.js"></script>
ojan 2013/05/14 02:40:46 Can you make this a dump-as-markup.js test instead
yosin_UTC9 2013/05/14 04:20:31 Done.
+<script>
+description('Test case of crash bug CR-177470');
ojan 2013/05/14 02:40:46 Nit: An actual URL is preferable, i.e. http://crbu
yosin_UTC9 2013/05/14 04:20:31 Done.
+function $(id) { return document.getElementById(id); }
+
+window.addEventListener('load', function() {
+ var range = document.createRange();
+ range.setStart($('start'), NaN);
+ range.setEnd($('end'), NaN);
+ getSelection().addRange(range);
+ document.execCommand('delete', null, '');
+});
+</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>
+<div id="log"></div>
+<script src="../../fast/js/resources/js-test-post.js"></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