function justMovePanel(panelText, xCoordinates, moveX, direction, isVertical){
    if(direction > 0){
        moveX += xCoordinates;
    }
    var horizontal = 1;
    var vertical = 0;
    if(isVertical){
        horizontal = 0;
        vertical = 1;
    }

    var panel = Ext.ComponentQuery.query(panelText)[0];
    var panelGhostId = "@" + panel.getId() + "-ghost_header";
    var panelId = "@" + panel.getId() + "_header";
    var before;
    ST.component(panel)
        .focus()
        .focused()
        .and(function (p){
            before = p.x;
            if(isVertical) {
                before = p.y;
            }
            var standardX = horizontal*(xCoordinates);
            var standardY = vertical*(xCoordinates);
            if (Lib.isDesktop) {
                ST.play([
                    {type: "mousedown", target: panelId, x: standardX, y: standardY, detail: 1},
                    {type: "mousemove", target: panelGhostId, x: standardX, y: standardY, buttons: 1},
                    {type: "mousemove", target: panelGhostId, x: horizontal*(moveX * direction), y: vertical*(moveX * direction), buttons: 1},
                    {type: "mouseup", target: panelGhostId, x: standardX, y: standardY, detail: 1}
                ]);
            }
            else {
                ST.play([
                    {type: "touchstart", target: panelId, x: standardX, y: standardY, detail: 1},
                    {type: "touchmove", target: panelGhostId, x: standardX, y: standardY, buttons: 1},
                    {type: "touchmove", target: panelGhostId, x: horizontal*(moveX * direction), y: vertical*(moveX * direction), buttons: 1},
                    {type: "touchend", target: panelGhostId, x: standardX, y: standardY, detail: 1}
                ]);
            }
        })
        .and(function (p) {
            var after = p.x;
            if(isVertical) {
                after = p.y;
            }
            expect(after).toBe(before + (direction * (moveX - (direction * xCoordinates))));
        });

    ST.component(panel).focus().focused();
}
/**
 * help function for drag & drop panel
 */
help function for drag & drop panel
help function for drag & drop panel
function justMovePanel(panelText, xCoordinates, moveX, direction, isVertical){
    if(direction > 0){
        moveX += xCoordinates;
    }
    var horizontal = 1;
    var vertical = 0;
    if(isVertical){
        horizontal = 0;
        vertical = 1;
    }
    var panel = Ext.ComponentQuery.query(panelText)[0];
    var panelGhostId = "@" + panel.getId() + "-ghost_header";
    var panelId = "@" + panel.getId() + "_header";
    var before;
    ST.component(panel)
        .focus()
        .focused()
        .and(function (p){
            before = p.x;
            if(isVertical) {
                before = p.y;
            }
            var standardX = horizontal*(xCoordinates);
            var standardY = vertical*(xCoordinates);
            if (Lib.isDesktop) {
                ST.play([
                    {type: "mousedown", target: panelId, x: standardX, y: standardY, detail: 1},
                    {type: "mousemove", target: panelGhostId, x: standardX, y: standardY, buttons: 1},
                    {type: "mousemove", target: panelGhostId, x: horizontal*(moveX * direction), y: vertical*(moveX * direction), buttons: 1},
                    {type: "mouseup", target: panelGhostId, x: standardX, y: standardY, detail: 1}
                ]);
            }
            else {
                ST.play([
                    {type: "touchstart", target: panelId, x: standardX, y: standardY, detail: 1},
                    {type: "touchmove", target: panelGhostId, x: standardX, y: standardY, buttons: 1},
                    {type: "touchmove", target: panelGhostId, x: horizontal*(moveX * direction), y: vertical*(moveX * direction), buttons: 1},
                    {type: "touchend", target: panelGhostId, x: standardX, y: standardY, detail: 1}
                ]);
            }
        })
        .and(function (p) {
            var after = p.x;
            if(isVertical) {
                after = p.y;
            }
            expect(after).toBe(before + (direction * (moveX - (direction * xCoordinates))));
        });
    ST.component(panel).focus().focused();
}
function justMovePanel ( panelText , xCoordinates , moveX , direction , isVertical ) { if ( direction > 0 ) { moveX += xCoordinates ; } var horizontal = 1 ; var vertical = 0 ; if ( isVertical ) { horizontal = 0 ; vertical = 1 ; } var panel = Ext . ComponentQuery . query ( panelText ) [ 0 ] ; var panelGhostId = "@" + panel . getId ( ) + "-ghost_header" ; var panelId = "@" + panel . getId ( ) + "_header" ; var before ; ST . component ( panel ) . focus ( ) . focused ( ) . and ( function ( p ) { before = p . x ; if ( isVertical ) { before = p . y ; } var standardX = horizontal * ( xCoordinates ) ; var standardY = vertical * ( xCoordinates ) ; if ( Lib . isDesktop ) { ST . play ( [ { type : "mousedown" , target : panelId , x : standardX , y : standardY , detail : 1 } , { type : "mousemove" , target : panelGhostId , x : standardX , y : standardY , buttons : 1 } , { type : "mousemove" , target : panelGhostId , x : horizontal * ( moveX * direction ) , y : vertical * ( moveX * direction ) , buttons : 1 } , { type : "mouseup" , target : panelGhostId , x : standardX , y : standardY , detail : 1 } ] ) ; } else { ST . play ( [ { type : "touchstart" , target : panelId , x : standardX , y : standardY , detail : 1 } , { type : "touchmove" , target : panelGhostId , x : standardX , y : standardY , buttons : 1 } , { type : "touchmove" , target : panelGhostId , x : horizontal * ( moveX * direction ) , y : vertical * ( moveX * direction ) , buttons : 1 } , { type : "touchend" , target : panelGhostId , x : standardX , y : standardY , detail : 1 } ] ) ; } } ) . and ( function ( p ) { var after = p . x ; if ( isVertical ) { after = p . y ; } expect ( after ) . toBe ( before + ( direction * ( moveX - ( direction * xCoordinates ) ) ) ) ; } ) ; ST . component ( panel ) . focus ( ) . focused ( ) ; }
help function for drag & drop panel
help function for drag & drop panel