build/bloatcycle.html
author bugzilla@standard8.demon.co.uk
Fri, 30 Mar 2007 11:09:16 -0700
changeset 232 7cceaf37b4a7c3050ae9bb4a003a28d6640c1e0a
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 1038 05a66eda8320154c6ba0846a1185d037c68ce7fd
permissions -rw-r--r--
Attempt to fix windows bustage when building latest c-sdk with mozilla apps as a result of bug 359716 - temporarily change c-sdk tag to blank this time, HEAD doesn't seem to work.

<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 (list[idx]) {
	window.setTimeout(loadURL, interval);
    } else {
    window.setTimeout("w.close();", interval);
	window.setTimeout("window.close();", interval);
    }
}
    var i;
    for(i=0;i<6;i++) {
      document.write(list[i]);
      document.write("<br>");
    }
</script>