Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html |
| diff --git a/third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-two-paragraphs.html b/third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html |
| similarity index 66% |
| copy from third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-two-paragraphs.html |
| copy to third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html |
| index 20e8676ad81446d4e17f9bddf627e357544da051..5c15411420dcbe9ee16c10acec4e5b3ef6b25fc7 100644 |
| --- a/third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-two-paragraphs.html |
| +++ b/third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html |
| @@ -2,15 +2,19 @@ |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <style> |
| -div { |
| - border: 1px solid gray; |
| - padding: 10px; |
| - line-height: 1.44; |
| +#editable p { |
| + font-size: 20px; |
| + line-height: 22px; |
| + color: red; |
| } |
| </style> |
| <div contenteditable="true" id="editable"> |
| - <p>This is the first paragraph.</p> |
| - <p>This is the second.</p> |
| +<ul> |
| + <li>list item 1</li> |
| + <li>list item 2</li> |
| + <li>list item 3</li> |
| + </ul> |
| + <p>Paragraph</p> |
| </div> |
| <script> |
| test(function() { |
| @@ -24,7 +28,7 @@ test(function() { |
| editor.focus(); |
| document.execCommand('delete', null, false); |
|
yosin_UTC9
2016/06/22 03:53:15
nit: we don't need to have |null, false|.
|
| - var html_para = document.getElementsByTagName('p')[0].outerHTML; |
| - assert_equals(html_para, '<p>This is the first paragraph.This is the second.</p>'); |
| + var html_para = document.getElementsByTagName('li')[2].outerHTML; |
|
yosin_UTC9
2016/06/22 03:53:15
nit: Please use camelStyle name, e.g. |htmlPara|
|
| + assert_equals(html_para, '<li>list item 3Paragraph</li>'); |
| }, 'merge two paragraphs by backspace'); |
| </script> |