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

Side by Side Diff: LayoutTests/editing/deleting/delete-listitem-003.html

Issue 18799004: Don't insert redundant BR for merging (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-09-05T16:10:37 Created 7 years, 3 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
OLDNEW
(Empty)
1 <head>
2 <style>
3 p.listStyle:before {
4 content: "\25cf";
5 margin-right: 18pt;
6 }
7 </style>
8 </head>
9 <body>
10 <div id="container">
11 <div contenteditable="true" id="work">
12 <p class="listStyle"><span>One</span><br id="one"></p>
13 <p class="listStyle"><span>Two</span><br id="two"></p>
14 <p class="listStyle"><span>Three</span><br id="three"></p>
15 </div>
16 </div>
17 <script src="../../fast/js/resources/js-test-pre.js"></script>
18 <script>
19 function $(id) { return document.getElementById(id); }
20
21 var sample = document.querySelectorAll("p.listStyle")[1];
22 var range = document.createRange();
23 range.selectNode(sample.firstChild);
24 var selection = window.getSelection();
25 selection.removeAllRanges();
26 selection.addRange(range);
27 document.execCommand('Delete');
28 shouldBeEqualToString('sample.outerHTML', '<p class="listStyle"><br id="two"></p >');
29
30 if (window.testRunner)
31 $('container').outerHTML = '';
32 </script>
33 <script src="../../fast/js/resources/js-test-post.js"></script>
34 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698