Use testRunner instead of layoutTestController in animations tests
[WebKit-https.git] / LayoutTests / animations / animation-hit-test-transform.html
index d3dd980..26baad0 100644 (file)
      
         function doTest()
         {
-            if (window.layoutTestController) {
-                if (!layoutTestController.pauseAnimationAtTimeOnElementWithId("anim", 2.0, "target"))
+            if (window.testRunner) {
+                if (!testRunner.pauseAnimationAtTimeOnElementWithId("anim", 2.0, "target"))
                     throw("Transition is not running");
         
                 checkResults();
-                layoutTestController.notifyDone();
+                testRunner.notifyDone();
             }
             else {
                 window.setTimeout("checkResults()", 2000);
@@ -67,9 +67,9 @@
     
         function startTest()
         {
-            if (window.layoutTestController) {
-                layoutTestController.dumpAsText();
-                layoutTestController.waitUntilDone();
+            if (window.testRunner) {
+                testRunner.dumpAsText();
+                testRunner.waitUntilDone();
             }
       
             document.getElementById("target").style.webkitAnimationName = "anim";