Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-sanitize-crash-1.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; ">
29         <div>one &nbsp;</div>
30         <div id="test">two &nbsp;</div>three &nbsp;
31         <div>four &nbsp;</div>
32         <div><br></div>
33     </body>
34 </html>