Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / undo / 4063751.html
blob54d55dd72cf3118cf292e4401dd88ec5b6a956f5
1 <html>
2 <head>
4 <link rel=stylesheet href="../editingStyle.css" type="text/css">
5 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
7 <script>
9 function editingTest() {
10 moveSelectionForwardByCharacterCommand();
11 moveSelectionForwardByCharacterCommand();
13 var string = "this is a test. ";
14 for (var i = 0; i < string.length; i++)
15 typeCharacterCommand(string[i]);
16 undoCommand();
17 redoCommand();
18 undoCommand();
19 redoCommand();
22 </script>
24 <title>Redo Typing can add extra space characters</title>
25 </head>
26 <body>
28 <p>This tests RebalanceWhitespace's ability to Undo.</p>
29 <p>You should see "( this is a test. )", minus the quotes.</p>
31 <hr>
33 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
34 <div id="test" class="editing">( )</div>
35 </div>
37 <script>
38 runEditingTest();
39 </script>
41 </body>
42 </html>