Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=363146
5 -->
6 <head>
7 <title>Test for Bug 363146</title>
8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=363146">Mozilla Bug 363146</a>
13 <div style="width:100px; height:400px; position:relative;">
14 <table id="t1" border="0" cellspacing="0" cellpadding="0"
15 style="border:10px solid black; margin:20px; position:absolute; left:50px; top:35px;">
16 <caption align="top" style="height:100px;">Caption</caption>
17 <tr>
18 <td><div style="width:400px; height:100px;">Cell</div></td>
19 </tr>
20 </table>
21 </div>
22 <div style="width:100px; height:400px; position:relative;">
23 <table id="t2" border="0" cellspacing="0" cellpadding="0"
24 style="margin:20%;">
25 <caption align="top" style="height:100px;">Caption</caption>
26 <tr>
27 <td><div style="width:400px; height:100px;">Cell</div></td>
28 </tr>
29 </table>
30 </div>
31 <p id="display"></p>
32 </div>
33 <div id="content" style="display: none">
35 </div>
36 <pre id="test">
37 <script class="testbody" type="text/javascript">
39 var c = window.getComputedStyle(document.getElementById("t1"), "");
40 is(c.width, "420px");
41 is(c.height, "120px");
42 is(c.left, "50px");
43 is(c.top, "35px");
44 is(c.borderLeftWidth, "10px");
45 is(c.borderRightWidth, "10px");
46 is(c.borderTopWidth, "10px");
47 is(c.borderBottomWidth, "10px");
48 is(c.marginLeft, "20px");
49 is(c.marginRight, "20px");
50 is(c.marginTop, "20px");
51 is(c.marginBottom, "20px");
53 var c2 = window.getComputedStyle(document.getElementById("t2"), "");
54 is(c2.marginLeft, "20px");
55 is(c2.marginRight, "20px");
56 is(c2.marginTop, "20px");
57 is(c2.marginBottom, "20px");
59 </script>
60 </pre>
61 </body>
62 </html>