function testButtons (button, pressed) {
        describe(button, function () {
            var button1 = Components.button(button);
            Lib.testButtons(prefix, button);
            //added to library function
            it('content should be properly updated to' + button, function () {
                //ST.button(prefix + button1).click();
                ST.component('panel[id^=kitchensink-view-toolbars]').and(function(panel) {
                    ST.element(panel.innerElement).and(function(body){
                        expect(body.dom.innerHTML).toContain('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
                    });
                });
                //check if button is still pressed (for buttons in the middle)
                if(pressed){
                    if(button === buttonsMiddle[0]){
                        ST.button(button1).missingCls('x-pressed');
                    }
                    else {
                        ST.button(button1).hasCls('x-pressed');
                    }
                }
            });

        });
    }
//copy of function from library because of checking panel content
copy of function from library because of checking panel content
copy of function from library because of checking panel content
function testButtons (button, pressed) {
        describe(button, function () {
            var button1 = Components.button(button);
            Lib.testButtons(prefix, button);
            it('content should be properly updated to' + button, function () {
                ST.component('panel[id^=kitchensink-view-toolbars]').and(function(panel) {
                    ST.element(panel.innerElement).and(function(body){
                        expect(body.dom.innerHTML).toContain('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
                    });
                });
                if(pressed){
                    if(button === buttonsMiddle[0]){
                        ST.button(button1).missingCls('x-pressed');
                    }
                    else {
                        ST.button(button1).hasCls('x-pressed');
                    }
                }
            });
        });
    }
function testButtons ( button , pressed ) { describe ( button , function ( ) { var button1 = Components . button ( button ) ; Lib . testButtons ( prefix , button ) ; it ( 'content should be properly updated to' + button , function ( ) { ST . component ( 'panel[id^=kitchensink-view-toolbars]' ) . and ( function ( panel ) { ST . element ( panel . innerElement ) . and ( function ( body ) { expect ( body . dom . innerHTML ) . toContain ( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' ) ; } ) ; } ) ; if ( pressed ) { if ( button === buttonsMiddle [ 0 ] ) { ST . button ( button1 ) . missingCls ( 'x-pressed' ) ; } else { ST . button ( button1 ) . hasCls ( 'x-pressed' ) ; } } } ) ; } ) ; }
copy of function from library because of checking panel content
copy of function from library because of checking panel content
//added to library function //ST.button(prefix + button1).click(); //check if button is still pressed (for buttons in the middle)