Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / scroll-element-to-rect-centered.html
index 5c5df82..877b5bf 100644 (file)
@@ -9,20 +9,19 @@
     </body>
     <script src="../js/resources/js-test-pre.js"></script>
     <script>
-      if (window.internals) {
-        var box = document.getElementById('textbox');
+      var box = document.getElementById('textbox');
+      if (window.internals)
         window.internals.scrollElementToRect(box, 50, 30, 200, 250);
-      }
+
       var rect = box.getBoundingClientRect();
       var computedLeft = 50 + Math.floor((200 - rect.width) / 2);
       var computedTop = 30 + Math.floor((250 - rect.height) / 2);
       debug("Scrolled element to rect");
       shouldBe("rect.left", "computedLeft");
       shouldBe("rect.top", "computedTop");
-      if (window.layoutTestController) {
-        layoutTestController.dumpAsText();
+      if (window.testRunner) {
+        testRunner.dumpAsText();
       }
-      successfullyParsed = true;
     </script>
     <script src="../js/resources/js-test-post.js"></script>
     </script>