4 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
8 function editingTest() {
9 for(i = 1; i <= 10; i++) {
10 typeCharacterCommand('x');
11 for(j = 1; j <= i; j++)
12 typeCharacterCommand(' ');
13 typeCharacterCommand('x');
14 for(k = 1; k <= i; k++)
15 extendSelectionBackwardByCharacterCommand();
16 extendSelectionBackwardByCharacterCommand();
17 extendSelectionBackwardByCharacterCommand();
20 pasteAndMatchStyleCommand();
21 typeCharacterCommand('\n');
27 <title>Pasting plain text with varying amounts of whitespace</title>
31 <p>This tests to see if spaces are lost during a copy/paste</p>
35 <div id="test" contenteditable="true"><br></div>