build/bloatcycle.html
author edward.lee@engineering.uiuc.edu
Mon, 13 Aug 2007 10:46:10 -0700
changeset 4508 29d8b72f9a9f420691ca7fde73301675d98d35f5
parent 1038 05a66eda8320154c6ba0846a1185d037c68ce7fd
child 4829 7704bd01b074b03de7145293c774ec80747bcc77
permissions -rw-r--r--
Bug 391823 - mozilla-central: Firefox build fails copying libnssdbm3.dylib to dist/bin (r=benjamin)

<script>
// bloat test driver for TestGtkEmbed
//
// set |user_pref("dom.allow_scripts_to_close_windows", true);| to 
// allow this to close the window when the loop is done.
//
//     "ftp://ftp.mozilla.org",   // not supported for TestGtkEmbed
//
var list = 
    [
     "http://www.mozilla.org",
     "http://www.mozilla.org",
     "http://www.mozilla.org/newlayout/samples/test2.html",
     "http://www.mozilla.org/newlayout/samples/test8.html",
     "http://www.mozilla.org/newlayout/samples/test6.html",
     "http://www.mozilla.org/newlayout/samples/test8.html"
    ];
var interval = 3000; // 15000
var idx = 0;
var w;

window.onload = function () {
    w = window.open("about:blank");
    window.setTimeout(loadURL, interval); 
};
function loadURL () {
    w.location.href = list[idx++];
    if (idx < list.length) {
	window.setTimeout(loadURL, interval);
    } else {
	window.setTimeout("w.close();", interval);
	window.setTimeout("window.close();", interval*2);
    }
}
var i;

for(i=0; i < list.length;i++) {
    document.write(list[i]);
    document.write("<br>");
}
</script>