Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / resources / select-all-iframe-src.html
1 <script src="../../editing.js" language="JavaScript" type="text/JavaScript"></script>
2 <script>
3 function editingTest() {
4     if (!window.testRunner)
5         return;
6     
7     window.testRunner.waitUntilDone();
8     
9     // Give focus to the subframe so that Select All will operate on it, and not the main frame.
10     eventSender.mouseMoveTo(100, 50);
11     eventSender.mouseDown();
12     eventSender.mouseUp();
13     
14     selectAllCommand();
15     deleteCommand();
16     
17     window.testRunner.notifyDone();
18 }
19 </script>
20 <body bgcolor="lightyellow" contenteditable="true">
21 <div id="test">hello world</div>
22
23 <script>
24 runEditingTest();
25 </script>
26
27 </body>