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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/delete_at_paragraph_boundaries.html

Issue 2297553002: Convert editing/deleting/delete-at-paragraph-boundaries-009.html to use w3c test harness (Closed)
Patch Set: 2016-08-31T14:27:07 Created 4 years, 4 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
Index: third_party/WebKit/LayoutTests/editing/deleting/delete_at_paragraph_boundaries.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete_at_paragraph_boundaries.html b/third_party/WebKit/LayoutTests/editing/deleting/delete_at_paragraph_boundaries.html
index 4bd4b6c7b3ea1f47b80a0204c517ba004be57aa8..9c12b635418a1152e4bb4241ff05c10b0fcdb1a3 100644
--- a/third_party/WebKit/LayoutTests/editing/deleting/delete_at_paragraph_boundaries.html
+++ b/third_party/WebKit/LayoutTests/editing/deleting/delete_at_paragraph_boundaries.html
@@ -137,4 +137,22 @@
'</div>',
].join('')),
'Deleting when a selection starts in the middle of the last paragraph and extends to the end of that paragraph');
+
+ test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div>',
+ 'one<p>^two</p><p>thr|ee</p><p>four</p>',
+ '</div>',
+ '</div>',
+ ].join(''),
+ 'delete',
+ [
+ '<div contenteditable>',
+ // TODO(yosin): We should revise "delete" command not have BR
+ // after "four".
+ 'one<p>|ee</p><p>four<br></p>',
+ '</div>',
+ ].join('')),
+ 'Deleting when a selection starts at the beginning of a paragraph preceded by a text element and extends into the middle of a following paragraph.');
</script>

Powered by Google App Engine
This is Rietveld 408576698