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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html

Issue 2182013002: Convert editing/pasteboard/merge-after-delete*.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-26T16:15:35 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <script>
6 test(() => assert_selection(
7 '<div contenteditable><div>f^oo</div>bar|<br></div>',
8 'insertHTML <div>foo</div><br class="Apple-interchange-newline">',
9 '<div contenteditable><div>ffoo</div><div>|<br></div></div>'),
10 'BR interchange-newline is not inserted');
11
12 test(() => assert_selection(
13 [
14 '<div contenteditable>',
15 '<div style="color:red">b^ar</div>',
16 '<div style="color:blue">baz|</div>',
Xiaocheng 2016/07/26 09:43:35 <br> is missing.
yosin_UTC9 2016/07/27 01:45:36 Good catch! Done.
17 '</div>',
18 ].join(''),
19 'insertHTML <div>FOO</div><div>BAR</div>',
20 [
21 '<div contenteditable>',
22 '<div style="color:red">bFOO</div>',
23 '<div>BAR|</div>',
24 '</div>',
25 ].join('')),
26 'Use existing DIV at replace when partial replacement');
27
28 test(() => assert_selection(
29 [
30 '<div contenteditable>',
31 '<div style="color:red">b^ar</div>',
32 'baz|<br>',
33 '</div>',
34 ].join(''),
35 'insertHTML <div>FOO</div><div>BAR</div>',
36 [
37 '<div contenteditable>',
38 '<div style="color:red">bFOO</div>',
39 '<div>BAR|</div>',
40 '</div>',
41 ].join('')),
42 'Replace text+BR to DIV');
43 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698