2006-02-25 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2006 23:08:56 +0000 (23:08 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2006 23:08:56 +0000 (23:08 +0000)
        Reviewed by ggaren.

        Test new PlugInInfoStore class (used to be KConfig).

        * plugins/plugin-javascript-access-expected.txt: Added.
        * plugins/plugin-javascript-access.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13022 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/plugins/plugin-javascript-access-expected.txt [new file with mode: 0644]
LayoutTests/plugins/plugin-javascript-access.html [new file with mode: 0644]

index 192c889..7a094cf 100644 (file)
@@ -1,3 +1,12 @@
+2006-02-25  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by ggaren.
+        
+        Test new PlugInInfoStore class (used to be KConfig).
+        
+        * plugins/plugin-javascript-access-expected.txt: Added.
+        * plugins/plugin-javascript-access.html: Added.
+
 2006-02-25  David Kilzer  <ddkilzer@kilzer.net>
 
         Reviewed by Maciej, landed by Geoff.
diff --git a/LayoutTests/plugins/plugin-javascript-access-expected.txt b/LayoutTests/plugins/plugin-javascript-access-expected.txt
new file mode 100644 (file)
index 0000000..e750227
--- /dev/null
@@ -0,0 +1,16 @@
+Name: WebKit Test PlugIn
+
+Description: Simple Netscape plug-in that handles test content for WebKit
+
+Filename: TestNetscapePlugIn.plugin
+
+Mime Types:
+
+Type: application/x-webkit-test-netscape
+
+Description: test netscape content
+
+Suffixes: testnetscape
+
+
+
diff --git a/LayoutTests/plugins/plugin-javascript-access.html b/LayoutTests/plugins/plugin-javascript-access.html
new file mode 100644 (file)
index 0000000..f30dfa6
--- /dev/null
@@ -0,0 +1,41 @@
+<html>
+<head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+    <title>Installed Plug-ins</title>
+</head>
+<body>
+<script type="application/x-javascript">
+if (window.layoutTestController)
+    layoutTestController.dumpAsText()
+
+navigator.plugins.refresh(false); // Supposedly helps if new plug-ins were added.
+
+var foundTestPlugin = false;
+
+for (var pi = 0; pi != navigator.plugins.length; pi++) {
+    var plugin = navigator.plugins[pi];
+    
+    // We can only guarantee that the Test PlugIn is installed.
+    if (plugin.name != "WebKit Test PlugIn")
+        continue;
+    else
+        foundTestPlugin = true;
+
+    document.writeln("<p>Name: " + plugin.name + "<\/p>");
+    document.writeln("<p>Description: " + plugin.description + "<\/p>");
+    document.writeln("<p>Filename: " + plugin.filename + "<\/p>");
+
+    document.writeln("<p>Mime Types:<\/p>");
+    for (var mi = 0; mi != plugin.length; ++mi) {
+        document.writeln("<p>Type: " + plugin[mi].type + "<\/p>");
+        document.writeln("<p>Description: " + plugin[mi].description + "<\/p>");
+        document.writeln("<p>Suffixes: " + plugin[mi].suffixes + "<\/p>");
+        document.writeln("<br>");
+    }
+}
+
+if (!foundTestPlugin)
+    document.writeln("<p>FAILURE!  (Failed to find netscape test plugin)<\/p>");
+</script>
+</body>
+</html>