Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-text-at-tabspan-001.html
1 <!DOCTYPE html>
2 <html>
3 <body style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">
4 <div contenteditable id="root" style="border: 2px solid red; padding: 12px; font-size: 24px">
5 <span id="test">a<span class="Apple-tab-span" style="white-space:pre">                  </span>z</span>
6 </div>
7 <script src="../editing.js"></script>
8 <script src="../../resources/dump-as-markup.js"></script>
9 <script>
10
11 var test = document.getElementById('test');
12 test.focus();
13 window.getSelection().setPosition(test, 0);
14
15 if (window.testRunner)
16     testRunner.dumpEditingCallbacks();
17
18 extendSelectionForwardByCharacterCommand();
19 copyCommand();
20 moveSelectionForwardByCharacterCommand();
21 pasteCommand();
22 typeCharacterCommand();
23
24 Markup.dump('root', 'You should see aax\\tz below');
25
26 </script>
27 </body>
28 </html>