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

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

Issue 2254933003: Convert editing/deleting/delete-block-merge-contents-0{18,19,20,21}.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-18T18:17:54 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_block_merge_end_of_line.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete_block_merge_end_of_line.html b/third_party/WebKit/LayoutTests/editing/deleting/delete_block_merge_end_of_line.html
new file mode 100644
index 0000000000000000000000000000000000000000..7813fe73c6fd19de6fe4af2a46a6d960d6e69b87
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/deleting/delete_block_merge_end_of_line.html
@@ -0,0 +1,69 @@
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<script>
+ test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div>T^',
+ '<div>x|est OK<br>...more text</div>',
+ '</div>',
+ '</div>',
+ ].join(''),
+ 'delete',
+ [
+ '<div contenteditable>',
+ '<div>T|est OK<div>...more text</div></div>',
+ '</div>',
+ ].join('')),
+ 'Delete a character at start of line');
+
+ test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div>X^',
+ '<div>should not see this content<br>|Y</div>',
+ '</div>',
+ '</div>',
+ ].join(''),
+ 'delete',
+ [
+ '<div contenteditable>',
+ 'X|Y',
+ '</div>',
+ ].join('')),
+ 'Delete characters and BR');
+
+ test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div>X',
+ '^<div>should not see this content<br>Y|Z</div>',
+ '</div>',
+ '</div>',
+ ].join(''),
+ 'delete',
+ [
+ '<div contenteditable>',
+ 'X|Z',
+ '</div>',
+ ].join('')),
+ 'Delete characters starting from DIV and BR');
+
+ test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div>X',
+ '^<div>should not see this content<br>Y|Z<br>AB</div>',
+ '</div>',
+ '</div>',
+ ].join(''),
+ 'delete',
+ [
+ '<div contenteditable>',
+ '<div>X|Z<div>AB</div></div>',
+ '</div>',
+ ].join('')),
+ 'Delete characters containing BR following characters and BR');
+</script>

Powered by Google App Engine
This is Rietveld 408576698