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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-two-paragraphs.html

Issue 2064473002: Don't need to preserve CSS line-height property during editing operation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline: webkit_unit_tests Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/data-transfer-items-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 <!doctype HTML>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 div {
6 border: 1px solid gray;
7 padding: 10px;
8 line-height: 1.44;
9 }
10 </style>
11 <div contenteditable="true" id="editable">
12 <p>This is the first paragraph.</p>
13 <p>This is the second.</p>
14 </div>
15 <script>
16 test(function() {
17 var editor = document.getElementById('editable');
18 var range = document.createRange();
19 var selection = window.getSelection();
20 range.setStart(editor.childNodes[2], 0);
21 range.collapse(true);
22 selection.removeAllRanges();
23 selection.addRange(range);
24 editor.focus();
25 document.execCommand('delete', null, false);
26
27 var html_para = document.getElementsByTagName('p')[0].outerHTML;
28 assert_equals(html_para, '<p>This is the first paragraph.This is the second.</ p>');
29 }, 'merge two paragraphs by backspace');
30 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/data-transfer-items-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698