Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / unsupported-content / list-delete-001.html
blobe6588c27ba13bd083b4dbdc325ac0b0b87e6370a
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 font-size: 24px;
9 .explanation {
10 border: 4px solid blue;
11 padding: 16px;
12 font-size: 18px;
13 margin-bottom: 10px;
15 .scenario:first-line { font-weight: bold; font-size: 24px; }
16 .expected:first-line { font-weight: bold; font-size: 24px; }
17 .results { margin-bottom: 10px; border: 2px solid green; font-size: 24px; }
18 </style>
19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
21 <script>
23 function editingTest() {
24 moveSelectionForwardByLineCommand();
25 for (i = 0; i < 4; i++)
26 extendSelectionForwardByLineCommand();
27 for (i = 0; i < 5; i++)
28 extendSelectionBackwardByCharacterCommand();
29 deleteCommand();
32 </script>
34 <title>Editing Test</title>
35 </head>
36 <body>
38 <div class="explanation">
39 <div class="scenario">
40 Tests:
41 <br>
42 Our ability to "edit around" content the HTML editing code does not yet handle very well.
43 <br><i>For this test: </i>Select and delete a list.
44 </div>
45 <br>
46 <div class="expected">
47 Expected Results:
48 <br>
49 The content in the red box must exactly match the content in the green box (except for the border color).
50 <br><i>For this test: </i>Only list content should get deleted.
51 Surrounding content that is not selected should (obviously) not be affected.
52 </div>
53 </div>
55 <div class="results">
56 beforeafter
57 </div>
59 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
60 <div id="test" class="editing">
61 before<ul>
62 <li>line one</li>
63 <li>line two</li>
64 <li>line three</li>
65 </ul>
66 after
67 </div>
68 </div>
70 <script>
71 runEditingTest();
72 </script>
74 </body>
75 </html>