Bug 449371 Firefox/Thunderbird crashes at exit [@ gdk_display_x11_finalize], p=Brian...
[wine-gecko.git] / testing / performance / talos / page_load_test / dhtml / meter.html
blob26523cdc39263dbdd25d3d34228c1ccbc56e5251
1 <html><head>
2 <!-- MOZ_INSERT_CONTENT_HOOK -->
3 <title>meter</title>
5 <script>
6 var end_count = 100;
7 var now_count = 0;
8 var total_loops = 0;
9 var displaycontent;
10 var startTime;
12 function mzDhtmlStart()
14 startTime = Date.now();
15 startcounting();
18 function startcounting()
20 if (now_count < end_count)
22 for (i=0;i<=99;i++)
24 total_loops++;
26 now_count++;
27 setcontent();
28 document.getElementById("countbox").innerHTML = displaycontent;
29 setTimeout("startcounting()", 0);
31 else
33 tpRecordTime(Date.now() - startTime);
37 function setcontent()
39 var tablewidth = 4.72 * now_count;
40 displaycontent = "<table width="+tablewidth+" height=10 border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=red>";
41 displaycontent += "&nbsp;";
42 displaycontent += "</td></tr></table>";
45 </script></head>
47 <body onload="mzDhtmlStart();">
49 <div id="scalabox">
50 <table border="0" cellpadding="0" cellspacing="0">
51 <tbody><tr>
52 <td width="156">0</td>
53 <td align="center" width="157">5000</td>
54 <td width="156" align="right">10000</td>
55 </tr></tbody>
56 </table>
57 </div>
59 <div id="countbox">
60 <table width="1" height="20"><tbody><tr><td></td></tr></tbody></table>
61 </div>
65 </body></html>