[webkit-changes] cvs commit: LayoutTests/fast/js
Plug-ins-expected.checksum Plug-ins-expected.png
Plug-ins-expected.txt Plug-ins.html
Geoffrey
ggaren at opensource.apple.com
Fri Dec 16 10:34:57 PST 2005
ggaren 05/12/16 10:34:56
Modified: . ChangeLog
Added: fast/js Plug-ins-expected.checksum Plug-ins-expected.png
Plug-ins-expected.txt Plug-ins.html
Log:
Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6112
REGRESSION: navigator.plugins empty.
* fast/js/Plug-ins-expected.checksum: Added.
* fast/js/Plug-ins-expected.png: Added.
* fast/js/Plug-ins-expected.txt: Added.
* fast/js/Plug-ins.html: Added.
Revision Changes Path
1.161 +10 -0 LayoutTests/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/LayoutTests/ChangeLog,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -r1.160 -r1.161
--- ChangeLog 16 Dec 2005 18:20:23 -0000 1.160
+++ ChangeLog 16 Dec 2005 18:34:54 -0000 1.161
@@ -1,3 +1,13 @@
+2005-12-16 Geoffrey Garen <ggaren at apple.com>
+
+ Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6112
+ REGRESSION: navigator.plugins empty.
+
+ * fast/js/Plug-ins-expected.checksum: Added.
+ * fast/js/Plug-ins-expected.png: Added.
+ * fast/js/Plug-ins-expected.txt: Added.
+ * fast/js/Plug-ins.html: Added.
+
2005-12-16 Mitz Pettel <opendarwin.org at mitzpettel.com>
Reviewed and landed by Darin.
1.1 LayoutTests/fast/js/Plug-ins-expected.checksum
Index: Plug-ins-expected.checksum
===================================================================
dd41421c3db4564bf66727ccb716c03b
1.1 LayoutTests/fast/js/Plug-ins-expected.png
<<Binary file>>
1.1 LayoutTests/fast/js/Plug-ins-expected.txt
Index: Plug-ins-expected.txt
===================================================================
layer at (0,0) size 800x600
RenderCanvas at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,39) size 784x522 [color=#555555]
RenderBlock {DIV} at (39,0) size 706x123
RenderBlock {DIV} at (0,0) size 706x22 [color=#000000]
RenderText {TEXT} at (0,0) size 69x22
text run at (0,0) width 69: "testname"
RenderBlock {BLOCKQUOTE} at (40,38) size 626x18
RenderText {TEXT} at (0,0) size 265x18
text run at (0,0) width 265: "testdescription \x{2014} from file \x{201C}testfilename\x{201D}."
RenderTable {TABLE} at (0,72) size 706x51 [color=#222222] [bgcolor=#F5F5F5] [border: (1px solid #222222)]
RenderTableSection {THEAD} at (1,1) size 0x24
RenderTableRow {TR} at (0,0) size 0x0
RenderTableCell {TH} at (0,0) size 212x24 [bgcolor=#CCCCCC] [r=0 c=0 rs=1 cs=1]
RenderText {TEXT} at (63,3) size 86x18
text run at (63,3) width 86: "MIME Type"
RenderTableCell {TH} at (212,0) size 352x24 [bgcolor=#CCCCCC] [border: none (1px solid #AAAAAA)] [r=0 c=1 rs=1 cs=1]
RenderText {TEXT} at (137,3) size 78x18
text run at (137,3) width 78: "Description"
RenderTableCell {TH} at (564,0) size 140x24 [bgcolor=#CCCCCC] [border: none (1px solid #AAAAAA)] [r=0 c=2 rs=1 cs=1]
RenderText {TEXT} at (34,3) size 73x18
text run at (34,3) width 73: "Extensions"
RenderTableSection {TBODY} at (1,25) size 0x25
RenderTableRow {TR} at (0,0) size 0x0
RenderTableCell {TD} at (0,0) size 212x25 [border: (1px solid #AAAAAA) none] [r=0 c=0 rs=1 cs=1]
RenderText {TEXT} at (3,4) size 48x18
text run at (3,4) width 48: "testtype"
RenderTableCell {TD} at (212,0) size 352x25 [border: (1px solid #AAAAAA) none (1px solid #AAAAAA)] [r=0 c=1 rs=1 cs=1]
RenderText {TEXT} at (4,4) size 90x18
text run at (4,4) width 90: "testdescription"
RenderTableCell {TD} at (564,0) size 140x25 [border: (1px solid #AAAAAA) none (1px solid #AAAAAA)] [r=0 c=2 rs=1 cs=1]
RenderText {TEXT} at (35,4) size 70x18
text run at (35,4) width 70: "testsuffixes"
1.1 LayoutTests/fast/js/Plug-ins.html
Index: Plug-ins.html
===================================================================
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Installed Plug-ins</title>
<style type="text/css">
body { color: #555; }
div#margins { margin: 5%; }
div.plugin-name {
margin-top: 2em;
margin-bottom: 1en;
font-size: large;
font-weight: bold;
color: black;
}
table {
background-color: #F5F5F5;
color: #222;
font: message-box;
width: 100%;
border: 1px solid #222;
border-spacing: 0px;
}
th {
text-align: center;
font-weight: bold;
background-color: #CCC;
}
th + th, td + td { border-left: 1px solid #AAA; }
td { border-top: 1px solid #AAA; }
th, td { padding: 3px; }
td.extensions { text-align: center; }
th.MIME-type { width: 30%; }
th.description { width: 50%; }
th.extensions { width: 20%; }
</style>
</head>
<body>
<div id="margins">
<script type="application/x-javascript">
// Localizers: Translate the title above, and these six strings, and leave the rest of the file intact.
var InstalledPlugIns = "Installed Plug-ins";
var BetweenDescriptionAndFilename = " — from file “";
var AfterFilename = "”.";
var MIMETypeColumnHeader = "MIME Type";
var DescriptionColumnHeader = "Description";
var ExtensionsColumnHeader = "Extensions";
// Now the code.
navigator.plugins.refresh(false); // Supposedly helps if new plug-ins were added.
var plugin = new Array();
plugin.name = "testname";
plugin.description = "testdescription";
plugin.filename = "testfilename";
if (navigator.plugins.length > 0) // should catch navigator.plugins being undefined
plugin[0] = { type: "testtype", description: "testdescription", suffixes: "testsuffixes" };
document.writeln("<div class=\"plugin-name\">" + plugin.name + "<\/div>");
document.writeln("<blockquote>" + plugin.description + BetweenDescriptionAndFilename + plugin.filename + AfterFilename + "<\/blockquote>");
document.writeln("<table class=\"types-table\">");
document.writeln("<thead><tr>");
document.writeln("<th class=\"MIME-type\">" + MIMETypeColumnHeader + "<\/th>");
document.writeln("<th class=\"description\">" + DescriptionColumnHeader + "<\/th>");
document.writeln("<th class=\"extensions\">" + ExtensionsColumnHeader + "<\/th>");
document.writeln("<\/tr><\/thead>");
document.writeln("<tbody>");
for (var mi = 0; mi != plugin.length; ++mi) {
document.writeln("<tr>");
document.writeln("<td class=\"MIME-type\">" + plugin[mi].type + "<\/td>");
document.writeln("<td class=\"description\">" + plugin[mi].description + "<\/td>");
document.writeln("<td class=\"extensions\">" + plugin[mi].suffixes + "<\/td>");
document.writeln("<\/tr>");
}
document.writeln("<\/tbody>");
document.writeln("<\/table>");
</script>
</div>
</body>
</html>
More information about the webkit-changes
mailing list