2010-09-28 Ryosuke Niwa <rniwa@webkit.org>
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-list-001.html
1 <html> 
2 <head>
3 <style>
4 .editing { 
5     border: 2px solid red; 
6     padding: 12px; 
7     font-size: 24px; 
8 }
9 </style>
10 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
11 <script src="../../resources/dump-as-markup.js"></script>
12 <title>Editing Test</title> 
13 </head> 
14 <body>
15 <div contenteditable id="root" class="editing">
16 <span id="test">Empty list item</span>
17 <p>
18 <ol>
19     <li>I should be number 1.</li>
20     <li></li>
21     <li>I should be number 3.</li>
22 </ol>
23 </div>
24 <script>
25
26 function editingTest() {
27     moveSelectionForwardByLineCommand()
28     for (i = 0; i < 3; i++)
29         extendSelectionForwardByLineCommand();
30     copyCommand();
31     moveSelectionForwardByLineCommand();
32     pasteCommand();
33     Markup.dump('root');
34 }
35
36 runDumpAsTextEditingTest(true);
37
38 </script>
39 </body>
40 </html>