Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-ws-fixup-002.html
blob74c90f7ffb67ff29de9ecbf49ec29ba3b28474e7
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
9 word-wrap: break-word;
10 -khtml-nbsp-mode: space;
11 -khtml-line-break: after-white-space;
13 </style>
14 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
16 <script>
18 function editingTest() {
19 for (i = 0; i < 28; i++)
20 moveSelectionForwardByCharacterCommand();
21 for (i = 0; i < 2; i++)
22 extendSelectionForwardByCharacterCommand();
23 deleteCommand();
26 </script>
28 <title>Editing Test</title>
29 </head>
30 <body>
31 <p>This testcase demonstrates a bug (9441). When 'as' is deleted, there should be a space before and after the caret. Editing produces a tree that should result in two spaces, but for some reason it isn't rendered.</p>
32 <div contenteditable id="root" class="editing">
33 <span id="test">in Liberty<i>F and seven</i> years <b> as </b>our fathers f upon this
34 continent, a new nation, conceived &nbsp;&nbsp; in Liberty, and dedicated to the
35 proposition that all</span>
36 </div>
38 <script>
39 runEditingTest();
40 </script>
42 </body>
43 </html>