RenderIFrame should display its name correctly in DRT output.
[WebKit-https.git] / LayoutTests / plugins / plugin-javascript-access.html
index afe25cb..496af1f 100644 (file)
@@ -5,8 +5,8 @@
 </head>
 <body>
 <script type="application/x-javascript">
-if (window.layoutTestController)
-    layoutTestController.dumpAsText()
+if (window.testRunner)
+    testRunner.dumpAsText()
 
 navigator.plugins.refresh(false); // Supposedly helps if new plug-ins were added.
 
@@ -32,7 +32,7 @@ for (var i = 0; i < navigator.plugins.length; i++) {
         document.writeln("<p>Suffixes: " + plugin[mi].suffixes + "<\/p>");
         document.writeln("<br>");
 
-        if (plugin.item(i).type == plugin[mi].type) {
+        if (plugin.item(mi).type == plugin[mi].type) {
             document.writeln("<p>Plugin.item() works.<\/p>");
         } else {
             document.writeln("<p>FAIL. Plugin.item() does not work.<\/p>");