Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / http / tests / misc / video-poster-image-load-outlives-gc-without-crashing.html
index 05d4ec5..c73ba6c 100644 (file)
@@ -1,16 +1,16 @@
 <script>
 
-if (window.layoutTestController) {
-       layoutTestController.waitUntilDone();
-       layoutTestController.dumpAsText();
+if (window.testRunner) {
+       testRunner.waitUntilDone();
+       testRunner.dumpAsText();
 }
 
 function loaded() {
        // If the garbage collection causes the image load to stop and therefore causes the load event to fire on the main frame, we failed.
        alert("FAIL: The load event fired");
        
-       if (window.layoutTestController)
-               layoutTestController.notifyDone();
+       if (window.testRunner)
+               testRunner.notifyDone();
 }
 
 </script>
@@ -26,8 +26,8 @@ This has a video element with an image for its poster frame.  That video element
 
 function finished() {
        window.stop()
-       if (window.layoutTestController)
-               layoutTestController.notifyDone();
+       if (window.testRunner)
+               testRunner.notifyDone();
 }
 
 function forceGC() {