function testButtons (button, micro) {
        var desc = 'After click on ' + button + ' button, ' + ' cls didn\'t have x-btn-pressed and now has it, nav style is present and button stay pressed, nav is disabled and than click to going back to initial state and check it';
        if(micro){
            desc += '\nFor micro nav is checked too.'
        }
        it(desc, function () {
            var button1 = Components.button(button);
            ST.button(button1).missingCls('x-button-pressed');
            clickAndCheckButtonsCls('', button1);
            //added to library function
            ST.component('tree-list segmentedbutton').and(function(tl) {
                expect(tl.items.items[0]._value).toContain('nav');
            });
            //ST.button(button1).hasCls('x-button-pressed');
            if(micro){
                ST.component('treelist').hasCls('x-treelist-micro');
                ST.button(Components.button(buttons[0])).hasCls('x-disabled');
                clickAndCheckButtonsCls('', button1);
            }
            clickAndCheckButtonsCls('', Components.button(buttons[0]));
            if(micro){
                ST.component('treelist').missingCls('x-treelist-micro');
                ST.button(button1).missingCls('x-button-pressed');
            }
            ST.button(Components.button(buttons[0])).missingCls('x-button-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, micro) {
        var desc = 'After click on ' + button + ' button, ' + ' cls didn\'t have x-btn-pressed and now has it, nav style is present and button stay pressed, nav is disabled and than click to going back to initial state and check it';
        if(micro){
            desc += '\nFor micro nav is checked too.'
        }
        it(desc, function () {
            var button1 = Components.button(button);
            ST.button(button1).missingCls('x-button-pressed');
            clickAndCheckButtonsCls('', button1);
            ST.component('tree-list segmentedbutton').and(function(tl) {
                expect(tl.items.items[0]._value).toContain('nav');
            });
            if(micro){
                ST.component('treelist').hasCls('x-treelist-micro');
                ST.button(Components.button(buttons[0])).hasCls('x-disabled');
                clickAndCheckButtonsCls('', button1);
            }
            clickAndCheckButtonsCls('', Components.button(buttons[0]));
            if(micro){
                ST.component('treelist').missingCls('x-treelist-micro');
                ST.button(button1).missingCls('x-button-pressed');
            }
            ST.button(Components.button(buttons[0])).missingCls('x-button-pressed');
        });
    }
function testButtons ( button , micro ) { var desc = 'After click on ' + button + ' button, ' + ' cls didn\'t have x-btn-pressed and now has it, nav style is present and button stay pressed, nav is disabled and than click to going back to initial state and check it' ; if ( micro ) { desc += '\nFor micro nav is checked too.' } it ( desc , function ( ) { var button1 = Components . button ( button ) ; ST . button ( button1 ) . missingCls ( 'x-button-pressed' ) ; clickAndCheckButtonsCls ( '' , button1 ) ; ST . component ( 'tree-list segmentedbutton' ) . and ( function ( tl ) { expect ( tl . items . items [ 0 ] . _value ) . toContain ( 'nav' ) ; } ) ; if ( micro ) { ST . component ( 'treelist' ) . hasCls ( 'x-treelist-micro' ) ; ST . button ( Components . button ( buttons [ 0 ] ) ) . hasCls ( 'x-disabled' ) ; clickAndCheckButtonsCls ( '' , button1 ) ; } clickAndCheckButtonsCls ( '' , Components . button ( buttons [ 0 ] ) ) ; if ( micro ) { ST . component ( 'treelist' ) . missingCls ( 'x-treelist-micro' ) ; ST . button ( button1 ) . missingCls ( 'x-button-pressed' ) ; } ST . button ( Components . button ( buttons [ 0 ] ) ) . missingCls ( 'x-button-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(button1).hasCls('x-button-pressed');