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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/delete-uneditable-style-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 <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.
2 <script>
3 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.
4 function $(id) { return document.getElementById(id); }
5
6 window.addEventListener('load', function() {
7 var range = document.createRange();
8 range.setStart($('start'), NaN);
9 range.setEnd($('end'), NaN);
10 getSelection().addRange(range);
11 document.execCommand('delete', null, '');
12 });
13 </script>
14 <div contentEditable id="test">
15 <span id="start">start</span>
16 editable-1
17 <div contentEditable="false">
18 <style>#end { color: red; }</style>
19 <link type="foo" href="bar">
20 uneditable
21 </div>
22 editable-2
23 <span id="end">end</span>
24 </div>
25 <div id="log"></div>
26 <script src="../../fast/js/resources/js-test-post.js"></script>
OLDNEW
« 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