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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/delete_at_paragraph_boundaries.html

Issue 2280473004: Convert editing/deleting/delete-at-paragraph-boundaries-008.html to use w3c test harness (Closed)
Patch Set: 2016-08-25T13:47:54 Created 4 years, 3 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script> 4 <script src="../assert_selection.js"></script>
5 <script> 5 <script>
6 test(() => assert_selection( 6 test(() => assert_selection(
7 [ 7 [
8 '<div contenteditable>', 8 '<div contenteditable>',
9 '<div>', 9 '<div>',
10 '<p>A</p><p>^<br></p><p>B|</p><p><br></p>', 10 '<p>A</p><p>^<br></p><p>B|</p><p><br></p>',
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 '</div>', 111 '</div>',
112 '</div>', 112 '</div>',
113 ].join(''), 113 ].join(''),
114 'delete', 114 'delete',
115 [ 115 [
116 '<div contenteditable>', 116 '<div contenteditable>',
117 'one<p>two</p><p>|ur</p>', 117 'one<p>two</p><p>|ur</p>',
118 '</div>', 118 '</div>',
119 ].join('')), 119 ].join('')),
120 'Deleting when a selection starts at the beginning of a paragraph preced ed by another block and extends into the middle of a following paragraph.'); 120 'Deleting when a selection starts at the beginning of a paragraph preced ed by another block and extends into the middle of a following paragraph.');
121
122
123 test(() => assert_selection(
124 [
125 '<div contenteditable>',
126 '<div>',
127 'one<p>two</p><p>three</p><p>fo^ur|</p>',
128 '</div>',
129 '</div>',
130 ].join(''),
131 'delete',
132 [
133 '<div contenteditable>',
134 '<div>',
135 'one<p>two</p><p>three</p><p>fo|</p>',
136 '</div>',
137 '</div>',
138 ].join('')),
139 'Deleting when a selection starts in the middle of the last paragraph an d extends to the end of that paragraph');
121 </script> 140 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698