Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-after-span-ws-001.html
blob2ac750e56d5b6fc0eedbb5e716826588ab7af5fe
1 <html>
2 <head>
4 <style>
5 body { overflow: hidden; }
6 .editing {
7 border: solid red 50px;
8 font-size: 24px;
9 line-height: 48px;
10 padding: 24px;
11 margin: 64px;
12 width: 600px;
14 </style>
15 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
17 <script>
19 function editingTest() {
20 var elem = document.getElementById("test-1");
21 var selection = window.getSelection();
22 selection.collapse(elem.firstChild, 0);
23 for (var i = 0; i < 4; i++)
24 moveSelectionForwardByCharacterCommand();
25 deleteCommand();
28 </script>
30 <title>Editing Test</title>
31 </head>
32 <body>
33 <div contenteditable id="root" class="editing">
34 <span id="test-1">foo</span> baz
35 </div>
37 <script>
38 runEditingTest();
39 </script>
41 </body>
42 </html>