Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-4039777-fix.html
blobaf7bdfc12cdb7635a357c902a79df4f1ac82048e
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 font-size: 24px;
8 .explanation {
9 border: 2px solid blue;
10 padding: 12px;
11 font-size: 24px;
12 margin-bottom: 24px;
14 .scenario { margin-bottom: 16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
16 .expected-results:first-line { font-weight: bold }
17 </style>
18 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
19 <script src="../../resources/dump-as-markup.js"></script>
20 <title>Editing Test</title>
21 </head>
22 <body>
24 <div id="expected" class="expected-results">
25 <ul style="text-align:right;"><li>A</li></ul>
26 <div>
27 <ul>
28 <li>
29 <a href="">B</a>
30 <br>
32 </li>
33 </ul>
34 </div>
35 </div>
37 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
38 <div id="test" class="editing">
39 <ul style="text-align:right;"><li>A</li></ul>
40 <div>
41 <ul>
42 <li>
43 <a href="">B</a>
44 <br>
46 </li>
47 </ul>
48 </div>
49 </div>
50 </div>
51 <script>
53 function editingTest() {
54 for (i = 0; i < 3; i++)
55 extendSelectionForwardByLineCommand();
56 copyCommand();
57 pasteCommand();
58 Markup.description('Bug fix for <a href="rdar://problem/4039777">&lt;rdar://problem/4039777&gt;</a> Pasting particular snippet of HTML containing list items and a link creates too many list items');
59 Markup.dump('expected', 'Expected result');
60 Markup.dump('test', 'Actual result');
63 runDumpAsTextEditingTest(true);
65 </script>
67 </body>
68 </html>