Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / 5195166-2.html
index a8eb6ae..8030465 100644 (file)
@@ -9,15 +9,15 @@ function log(str) {
     console.appendChild(li);
     li.appendChild(text);
 }
     console.appendChild(li);
     li.appendChild(text);
 }
-if (window.layoutTestController) {
-    window.layoutTestController.dumpEditingCallbacks();
+if (window.testRunner) {
+    window.testRunner.dumpEditingCallbacks();
     var text = document.getElementById("div").firstChild;
     var selection = window.getSelection();
     selection.setBaseAndExtent(text, 0, text, 0);
     var text = document.getElementById("div").firstChild;
     var selection = window.getSelection();
     selection.setBaseAndExtent(text, 0, text, 0);
-    textInputController.doCommand("moveForwardAndModifySelection:");
-    textInputController.doCommand("moveForwardAndModifySelection:");
-    textInputController.doCommand("moveForwardAndModifySelection:");
-    textInputController.doCommand("moveBackwardAndModifySelection:");
+    testRunner.execCommand("MoveForwardAndModifySelection");
+    testRunner.execCommand("MoveForwardAndModifySelection");
+    testRunner.execCommand("MoveForwardAndModifySelection");
+    testRunner.execCommand("MoveBackwardAndModifySelection");
 } else {
     log("Failure: This test cannot be run manually.")
 }
 } else {
     log("Failure: This test cannot be run manually.")
 }