Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-sanitize-crash-2.html
1 <html>
2     <head<></head>
3     <script>
4         function runTest()
5         {
6             if (window.testRunner)
7                 testRunner.dumpAsText();
8             
9             var elem = document.getElementById("test");
10             
11             x = elem.offsetLeft + elem.offsetWidth / 2;
12             y = elem.offsetTop + elem.offsetHeight / 2;
13             
14             eventSender.mouseMoveTo(x, y);
15             eventSender.mouseDown();
16             eventSender.mouseUp();
17             eventSender.mouseDown();
18             eventSender.mouseUp();
19             eventSender.mouseDown();
20             eventSender.mouseUp();
21             document.execCommand("copy");
22             eventSender.keyDown("downArrow");
23             eventSender.keyDown("downArrow");
24             eventSender.keyDown("downArrow");
25             document.execCommand("paste");
26         }
27     </script>
28     <body onload="runTest()" contenteditable="true" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>one &nbsp;</div><div id="test">two &nbsp;</div>
29     three &nbsp;<div>four &nbsp;</div><div><br></div></body></html>