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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html

Issue 2072093002: Remove style spans to follow the styles of list item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline for fixing test fails 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57%
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..3daa5ada047c890fa2e8a5c4ee32d55cd5bec5f9 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() {
@@ -22,9 +26,9 @@ test(function() {
selection.removeAllRanges();
selection.addRange(range);
editor.focus();
- document.execCommand('delete', null, false);
+ document.execCommand('delete');
- var html_para = document.getElementsByTagName('p')[0].outerHTML;
- assert_equals(html_para, '<p>This is the first paragraph.This is the second.</p>');
-}, 'merge two paragraphs by backspace');
+ var htmlPara = document.getElementsByTagName('li')[2].outerHTML;
+ assert_equals(htmlPara, '<li>list item 3Paragraph</li>');
+}, 'make a paragraph into a list by backspace');
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698