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

Side by Side 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, 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ].join(''), 130 ].join(''),
131 'delete', 131 'delete',
132 [ 132 [
133 '<div contenteditable>', 133 '<div contenteditable>',
134 '<div>', 134 '<div>',
135 'one<p>two</p><p>three</p><p>fo|</p>', 135 'one<p>two</p><p>three</p><p>fo|</p>',
136 '</div>', 136 '</div>',
137 '</div>', 137 '</div>',
138 ].join('')), 138 ].join('')),
139 'Deleting when a selection starts in the middle of the last paragraph an d extends to the end of that paragraph'); 139 'Deleting when a selection starts in the middle of the last paragraph an d extends to the end of that paragraph');
140
141 test(() => assert_selection(
142 [
143 '<div contenteditable>',
144 '<div>',
145 'one<p>^two</p><p>thr|ee</p><p>four</p>',
146 '</div>',
147 '</div>',
148 ].join(''),
149 'delete',
150 [
151 '<div contenteditable>',
152 // TODO(yosin): We should revise "delete" command not have BR
153 // after "four".
154 'one<p>|ee</p><p>four<br></p>',
155 '</div>',
156 ].join('')),
157 'Deleting when a selection starts at the beginning of a paragraph preced ed by a text element and extends into the middle of a following paragraph.');
140 </script> 158 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698