Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / http / tests / plugins / geturlnotify-from-npp-destroystream.html
index a225c28..d4c5ddf 100644 (file)
@@ -8,12 +8,12 @@ function streamDestroyed()
 function runTest() {
     plg.getURL("/plugins/resources/slow-resource.pl");
 
-    if (window.layoutTestController) {
-        layoutTestController.dumpAsText();
-        layoutTestController.waitUntilDone();
+    if (window.testRunner) {
+        testRunner.dumpAsText();
+        testRunner.waitUntilDone();
     }
 
-    var url = 'data:text/html,<scri' + 'pt>if (window.layoutTestController) layoutTestController.notifyDone();</scri' + 'pt>';
+    var url = 'data:text/html,<scri' + 'pt>if (window.testRunner) testRunner.notifyDone();</scri' + 'pt>';
     url += '<div>This tests that a plug-in that calls NPP_GetURLNotify from its NPP_DestroyStream during teardown '
     url += 'will not cause a crash.</div><div>SUCCESS! Did not crash!</div>';