Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / Plug-ins.html
blob9a7a9f8be4098c258ce194914156710403822fba
1 <html>
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
5 <title>Installed Plugins</title>
6 <style type="text/css">
7 body { color: #555; }
8 div#margins { margin: 5%; }
10 div.plugin-name {
11 margin-top: 2em;
12 margin-bottom: 1en;
13 font-size: large;
14 font-weight: bold;
15 color: black;
18 table {
19 background-color: #F5F5F5;
20 color: #222;
21 font: message-box;
22 width: 100%;
23 border: 1px solid #222;
24 border-spacing: 0px;
27 th {
28 text-align: center;
29 font-weight: bold;
30 background-color: #CCC;
33 th + th, td + td { border-left: 1px solid #AAA; }
34 td { border-top: 1px solid #AAA; }
35 th, td { padding: 3px; }
37 td.extensions { text-align: center; }
39 th.MIME-type { width: 30%; }
40 th.description { width: 50%; }
41 th.extensions { width: 20%; }
42 </style>
43 </head>
45 <body>
46 <div id="margins">
47 <script type="application/x-javascript">
49 if (window.testRunner)
50 testRunner.dumpAsText();
52 // Localizers: Translate the title above, and these six strings, and leave the rest of the file intact.
54 var InstalledPlugIns = "Installed Plugins";
55 var BetweenDescriptionAndFilename = " &mdash; from file &ldquo;";
56 var AfterFilename = "&rdquo;.";
57 var MIMETypeColumnHeader = "MIME Type";
58 var DescriptionColumnHeader = "Description";
59 var ExtensionsColumnHeader = "Extensions";
61 // Now the code.
63 navigator.plugins.refresh(false); // Supposedly helps if new plugins were added.
65 var plugin = new Array();
66 plugin.name = "testname";
67 plugin.description = "testdescription";
68 plugin.filename = "testfilename";
69 if (navigator.plugins.length > 0) // should catch navigator.plugins being undefined
70 plugin[0] = { type: "testtype", description: "testdescription", suffixes: "testsuffixes" };
72 document.writeln("<div class=\"plugin-name\">" + plugin.name + "<\/div>");
74 document.writeln("<blockquote>" + plugin.description + BetweenDescriptionAndFilename + plugin.filename + AfterFilename + "<\/blockquote>");
76 document.writeln("<table class=\"types-table\">");
78 document.writeln("<thead><tr>");
79 document.writeln("<th class=\"MIME-type\">" + MIMETypeColumnHeader + "<\/th>");
80 document.writeln("<th class=\"description\">" + DescriptionColumnHeader + "<\/th>");
81 document.writeln("<th class=\"extensions\">" + ExtensionsColumnHeader + "<\/th>");
82 document.writeln("<\/tr><\/thead>");
84 document.writeln("<tbody>");
85 for (var mi = 0; mi != plugin.length; ++mi) {
86 document.writeln("<tr>");
87 document.writeln("<td class=\"MIME-type\">" + plugin[mi].type + "<\/td>");
88 document.writeln("<td class=\"description\">" + plugin[mi].description + "<\/td>");
89 document.writeln("<td class=\"extensions\">" + plugin[mi].suffixes + "<\/td>");
90 document.writeln("<\/tr>");
93 document.writeln("<\/tbody>");
95 document.writeln("<\/table>");
97 </script>
98 </div>
99 </body>
101 </html>