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="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=399349">Mozilla Bug 399349</a>
15 <!-- Test parsing of integer numbers -->
16 <div id="Aone" style="width:100px; height:400px; top:-100px; left: -200px;position:relative;"></div>
18 <!-- Test parsing of float numbers -->
19 <div id="Atwo" style="width:150.2px; height:450.25px; top:-150.2px; left: -450.25px;position:relative;"></div>
20 <div id="Athree" style="width:.1px; height:0.3px; top:-0.1px; left:-0.3px;position:relative;"></div>
21 <div id="Afour" style="width:+100.017px; height:+400.017px; top:-.117px; left: -.217px;position:relative;"></div>
23 <!-- Test parsing of long fractions -->
24 <div id="Afive" style="width:+2345.0000000000000000000000000000000000001px; height:+456.000000000000000000000000000001px;
25 top:-2123.000000000000000000000000000000000001px; left:-6543.99999999999999999999999999999999px;
26 position:relative;"></div>
28 <!-- Force parsing of long numbers (>9 digits), if they are zero's. Note css itself can't handle large numers -->
29 <div id="Asix" style="width:+000000000012px; height:+000000000037.456788px;
30 top:-000000000023px; left:-000000000044.456788px;
31 position:relative;"></div>
33 <div id="content" style="display: none">
35 </div>
36 <pre id="test">
37 <script class="testbody" type="text/javascript">
39 var a1 = window.getComputedStyle(document.getElementById("Aone"), "");
40 is(a1.width, "100px");
41 is(a1.height, "400px");
42 is(a1.top, "-100px");
43 is(a1.left, "-200px");
45 var a2 = window.getComputedStyle(document.getElementById("Atwo"), "");
46 is(a2.width, "150.2px");
47 is(a2.height, "450.25px");
48 is(a2.top, "-150.2px");
49 is(a2.left, "-450.25px");
51 var a3 = window.getComputedStyle(document.getElementById("Athree"), "");
52 is(a3.width, "0.1px");
53 is(a3.height, "0.3px");
54 is(a3.top, "-0.1px");
55 is(a3.left, "-0.3px");
57 var a4 = window.getComputedStyle(document.getElementById("Afour"), "");
58 is(a4.width, "100.017px");
59 is(a4.height, "400.017px");
60 is(a4.top, "-0.116667px");
61 is(a4.left, "-0.216667px");
63 var a5 = window.getComputedStyle(document.getElementById("Afive"), "");
64 is(a5.width, "2345px");
65 is(a5.height, "456px");
66 is(a5.top, "-2123px");
67 is(a5.left, "-6544px");
69 var a6 = window.getComputedStyle(document.getElementById("Asix"), "");
70 is(a6.width, "12px");
71 is(a6.height, "37.45px");
72 is(a6.top, "-23px");
73 is(a6.left, "-44.45px");
75 </script>
77 </script>
78 </pre>
79 </body>
80 </html>