src/aria/ext/StressCss.js
function () {
        var document = Aria.$window.document;
        reportHolder = document.createElement('iframe');
        var block = document.createElement('iframe');
        reportHolder.scrolling = 'no';
        reportHolder.frameBorder = 'no';

        document.body.appendChild(reportHolder);
        reportHolder.doc = reportHolder.contentDocument || reportHolder.contentWindow.document;
        reportHolder.doc.write('<html><head></head><body></body></html>');
        reportHolder.doc.close();

        logHolder = reportHolder.doc.createElement('div');
        var close = reportHolder.doc.createElement('a');

        reportHolder.resize = function () {
            if (reportHolder) {
                var body = reportHolder.doc.body;
                style(reportHolder, {
                    width : body.scrollWidth,
                    height : body.scrollHeight
                });
            }
        };
        resizeInterval = setInterval(reportHolder.resize, 100);

        style(reportHolder, {
            position : 'fixed',
            top : 10,
            right : 10,
            zIndex : 10000,
            background : 'white',
            padding : 2,
            border : 'solid 2px #aaa',
            width : 250,
            height : 60,
            borderRadius : 4,
            boxShadow : '0 0 8px #eee'
        });
        style(reportHolder.doc.body, {
            'font' : '12px Helvetica,Arials,sans-serif',
            color : '#444'
        });
        style(logHolder, {
            whiteSpace : 'nowrap'
        });

        close.innerHTML = '&#215;';
        style(close, {
            position : 'absolute',
            top : 0,
            right : 0,
            textDecoration : 'none',
            fontWeight : 'bold',
            cursor : 'pointer',
            color : 'red',
            fontSize : '1.3em',
            lineHeight : 8
        });
        close.onclick = function () {
            close.onclick = null;
            clearInterval(resizeInterval);
            close = null;
            block.parentNode.removeChild(block);
            return closeReport();
        };

        style(block, {
            height : Aria.$window.screen.height * 2,
            width : Aria.$window.screen.width,
            position : 'absolute',
            top : 0,
            left : 0,
            visible : 'hidden',
            display : 'none',
            zIndex : 0
        });
        document.body.appendChild(block);

        reportHolder.doc.body.appendChild(close);
        reportHolder.doc.body.appendChild(logHolder);
    }
function () {
        var document = Aria.$window.document;
        reportHolder = document.createElement('iframe');
        var block = document.createElement('iframe');
        reportHolder.scrolling = 'no';
        reportHolder.frameBorder = 'no';

        document.body.appendChild(reportHolder);
        reportHolder.doc = reportHolder.contentDocument || reportHolder.contentWindow.document;
        reportHolder.doc.write('<html><head></head><body></body></html>');
        reportHolder.doc.close();

        logHolder = reportHolder.doc.createElement('div');
        var close = reportHolder.doc.createElement('a');

        reportHolder.resize = function () {
            if (reportHolder) {
                var body = reportHolder.doc.body;
                style(reportHolder, {
                    width : body.scrollWidth,
                    height : body.scrollHeight
                });
            }
        };
        resizeInterval = setInterval(reportHolder.resize, 100);

        style(reportHolder, {
            position : 'fixed',
            top : 10,
            right : 10,
            zIndex : 10000,
            background : 'white',
            padding : 2,
            border : 'solid 2px #aaa',
            width : 250,
            height : 60,
            borderRadius : 4,
            boxShadow : '0 0 8px #eee'
        });
        style(reportHolder.doc.body, {
            'font' : '12px Helvetica,Arials,sans-serif',
            color : '#444'
        });
        style(logHolder, {
            whiteSpace : 'nowrap'
        });

        close.innerHTML = '&#215;';
        style(close, {
            position : 'absolute',
            top : 0,
            right : 0,
            textDecoration : 'none',
            fontWeight : 'bold',
            cursor : 'pointer',
            color : 'red',
            fontSize : '1.3em',
            lineHeight : 8
        });
        close.onclick = function () {
            close.onclick = null;
            clearInterval(resizeInterval);
            close = null;
            block.parentNode.removeChild(block);
            return closeReport();
        };

        style(block, {
            height : Aria.$window.screen.height * 2,
            width : Aria.$window.screen.width,
            position : 'absolute',
            top : 0,
            left : 0,
            visible : 'hidden',
            display : 'none',
            zIndex : 0
        });
        document.body.appendChild(block);

        reportHolder.doc.body.appendChild(close);
        reportHolder.doc.body.appendChild(logHolder);
    }
function ( ) { var document = Aria . $window . document ; reportHolder = document . createElement ( 'iframe' ) ; var block = document . createElement ( 'iframe' ) ; reportHolder . scrolling = 'no' ; reportHolder . frameBorder = 'no' ; document . body . appendChild ( reportHolder ) ; reportHolder . doc = reportHolder . contentDocument || reportHolder . contentWindow . document ; reportHolder . doc . write ( '<html><head></head><body></body></html>' ) ; reportHolder . doc . close ( ) ; logHolder = reportHolder . doc . createElement ( 'div' ) ; var close = reportHolder . doc . createElement ( 'a' ) ; reportHolder . resize = function ( ) { if ( reportHolder ) { var body = reportHolder . doc . body ; style ( reportHolder , { width : body . scrollWidth , height : body . scrollHeight } ) ; } } ; resizeInterval = setInterval ( reportHolder . resize , 100 ) ; style ( reportHolder , { position : 'fixed' , top : 10 , right : 10 , zIndex : 10000 , background : 'white' , padding : 2 , border : 'solid 2px #aaa' , width : 250 , height : 60 , borderRadius : 4 , boxShadow : '0 0 8px #eee' } ) ; style ( reportHolder . doc . body , { 'font' : '12px Helvetica,Arials,sans-serif' , color : '#444' } ) ; style ( logHolder , { whiteSpace : 'nowrap' } ) ; close . innerHTML = '&#215;' ; style ( close , { position : 'absolute' , top : 0 , right : 0 , textDecoration : 'none' , fontWeight : 'bold' , cursor : 'pointer' , color : 'red' , fontSize : '1.3em' , lineHeight : 8 } ) ; close . onclick = function ( ) { close . onclick = null ; clearInterval ( resizeInterval ) ; close = null ; block . parentNode . removeChild ( block ) ; return closeReport ( ) ; } ; style ( block , { height : Aria . $window . screen . height * 2 , width : Aria . $window . screen . width , position : 'absolute' , top : 0 , left : 0 , visible : 'hidden' , display : 'none' , zIndex : 0 } ) ; document . body . appendChild ( block ) ; reportHolder . doc . body . appendChild ( close ) ; reportHolder . doc . body . appendChild ( logHolder ) ; }
Create the report holder to display log information about the tests while running the stress test.
Create the report holder to display log information about the tests while running the stress test .