| Index: third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html b/third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html
|
| index 9eedfefac9a809173c52dc2efb140a9de4b3acbb..f1279f359646b8c9866d0546f48dde4fb3707f0e 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html
|
| @@ -1,26 +1,13 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| -<body>
|
| -<p id="description">This tests deleting line break after pre.
|
| -WebKit should not cancel styles added by pre by those of document's default style.</p>
|
| -<div id="test" contenteditable>
|
| -<pre>hello</pre>
|
| -world
|
| -</div>
|
| -</div>
|
| -<script src="../editing.js"></script>
|
| -<script src="../../resources/dump-as-markup.js"></script>
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| <script>
|
| -
|
| -function editingTest() {
|
| - moveSelectionForwardByLineCommand();
|
| - deleteCommand();
|
| -
|
| - Markup.description(document.getElementById('description').textContent);
|
| - Markup.dump('test');
|
| -}
|
| -
|
| -runEditingTest();
|
| + test(() => assert_selection(
|
| + '<div contenteditable><pre>hello</pre>\n|world</div>',
|
| + 'delete',
|
| + // We should not cancel styles added BY PRE by those of document's
|
| + // default style.
|
| + '<div contenteditable><pre>hello|world</pre></div>'),
|
| + 'Delete line break after PRE');
|
| </script>
|
| -</body>
|
| -</html>
|
|
|