tools/performance/startup/open10Windows.xul
author Chris Jones <jones.chris.g@gmail.com>
Wed, 23 Jun 2010 13:59:07 -0500
changeset 44201 b6064d9b85b3bc3c66af6ce058e195972594353b
parent 35037 6810cc6dc5db3010eaf609afd85da9df0629ae3d
permissions -rw-r--r--
Bug 570099: Allow Shmems to be used in IPDL structs. r=benjamn

<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->

<!DOCTYPE window>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        id="open10Windows"
        onload="onload();">
    <script type="application/javascript">
        <![CDATA[
            const n = 11;
            var sub = [];
            function onload() {
                var i = n;
                while( i-- ) {
                    window.setTimeout( 'sub[n] = openMiniXul();', i*1000 );
                }
                window.setTimeout( 'shutDown();', n*1000 );
            }
            function openMiniXul(n) {
                return window.openDialog("chrome://navigator/content/miniXul.xul","_blank","","chrome,all");
            }
            function shutDown() {
                var i = n;
                while( i-- ) {
                    sub[i].close();
                }
                window.close();
            }
        ]]>
    </script>
</window>