Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / platform / chromium / permissionclient / script-permissions.html
index 1be38fe..8dbc88c 100644 (file)
@@ -1,9 +1,9 @@
 <html>
 <head>
 <script>
-if (window.layoutTestController) {
-    layoutTestController.dumpAsText();
-    layoutTestController.dumpPermissionClientCallbacks();
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.dumpPermissionClientCallbacks();
 }
 
 function log(a)
@@ -13,10 +13,10 @@ function log(a)
 
 function test()
 {
-    if (window.layoutTestController && layoutTestController.setScriptsAllowed)
-        layoutTestController.setScriptsAllowed(false);
+    if (window.testRunner && testRunner.setScriptsAllowed)
+        testRunner.setScriptsAllowed(false);
     else
-        log("This test requires layoutTestController.setScriptsAllowed, so it be can't run in a browser.");
+        log("This test requires testRunner.setScriptsAllowed, so it be can't run in a browser.");
 
     // Try to load an external script.
     var script = document.createElement('script');