2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / editing / deleting / forward-delete.html
blobc401473e762a2f91348bea88fd6e19384a4d7389
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 .explanation {
11 border: 2px solid blue;
12 padding: 12px;
13 font-size: 24px;
14 margin-bottom: 24px;
16 </style>
17 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
19 <script>
21 function editingTest() {
22 for (i = 0; i < 4; i++)
23 forwardDeleteCommand();
26 </script>
28 <title>Editing Test</title>
29 </head>
30 <body contenteditable="true">
31 <div class="explanation">
32 Should see "bar" in the red box. Insertion point should be at the start of the document.
33 </div>
35 <div id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
36 <div id="test" class="editing">foo bar</div></div>
38 <script>
39 runEditingTest();
40 </script>
42 </body>
43 </html>