function clickAndCheckButtonsCls(panelText, button1, messageBox){
    button1 = panelText + ' ' + button1;
    // we have to use mousedown/mouseup methods for checking pressing button
    // via mousedown/mouseup we divide click on the 'click/unclick' operations
    // via click method isn't possible to check if button was pressed
    ST.play([
        // press button
        { type: "mouseenter", target: button1 },
        { type: "mousedown", target: button1 }
    ]);
    //class depends on toolkit
    var cls = ST.isModern?'x-pressing':'x-btn-pressed';
    ST.button(button1).hasCls(cls);

    var fieldForPlay = [
        { type: "mouseleave", target: button1 },
        { type: "mouseup", target: button1 },
        { type: "tap", target: button1 }
    ];

    if(messageBox !== undefined){
        fieldForPlay.push({
            //IE ignore animation:null
            animation: null, delay: 0, target: "@msg-div", fn: function (done) {
                expect(this.targetEl.dom.textContent).toMatch(messageBox);
                done();
            }
        });
    }
    ST.play(fieldForPlay);
}
/**
 * help function for testButtons and testSplitButtons
 */
help function for testButtons and testSplitButtons
help function for testButtons and testSplitButtons
function clickAndCheckButtonsCls(panelText, button1, messageBox){
    button1 = panelText + ' ' + button1;
    ST.play([
        { type: "mouseenter", target: button1 },
        { type: "mousedown", target: button1 }
    ]);
    var cls = ST.isModern?'x-pressing':'x-btn-pressed';
    ST.button(button1).hasCls(cls);
    var fieldForPlay = [
        { type: "mouseleave", target: button1 },
        { type: "mouseup", target: button1 },
        { type: "tap", target: button1 }
    ];
    if(messageBox !== undefined){
        fieldForPlay.push({
            animation: null, delay: 0, target: "@msg-div", fn: function (done) {
                expect(this.targetEl.dom.textContent).toMatch(messageBox);
                done();
            }
        });
    }
    ST.play(fieldForPlay);
}
function clickAndCheckButtonsCls ( panelText , button1 , messageBox ) { button1 = panelText + ' ' + button1 ; ST . play ( [ { type : "mouseenter" , target : button1 } , { type : "mousedown" , target : button1 } ] ) ; var cls = ST . isModern ? 'x-pressing' : 'x-btn-pressed' ; ST . button ( button1 ) . hasCls ( cls ) ; var fieldForPlay = [ { type : "mouseleave" , target : button1 } , { type : "mouseup" , target : button1 } , { type : "tap" , target : button1 } ] ; if ( messageBox !== undefined ) { fieldForPlay . push ( { animation : null , delay : 0 , target : "@msg-div" , fn : function ( done ) { expect ( this . targetEl . dom . textContent ) . toMatch ( messageBox ) ; done ( ) ; } } ) ; } ST . play ( fieldForPlay ) ; }
help function for testButtons and testSplitButtons
help function for testButtons and testSplitButtons
// we have to use mousedown/mouseup methods for checking pressing button // via mousedown/mouseup we divide click on the 'click/unclick' operations // via click method isn't possible to check if button was pressed // press button //class depends on toolkit //IE ignore animation:null