File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ var lastKnownPos, currentPos;
5
5
test ( 'Get the initial mouse position.' , function ( t )
6
6
{
7
7
t . plan ( 3 ) ;
8
- robot . moveMouse ( 0 , 0 ) ;
9
8
t . ok ( lastKnownPos = robot . getMousePos ( ) , 'successfully retrieved mouse position.' ) ;
10
9
t . ok ( lastKnownPos . x !== undefined , 'mousepos.x is a valid value.' ) ;
11
10
t . ok ( lastKnownPos . y !== undefined , 'mousepos.y is a valid value.' ) ;
@@ -14,6 +13,7 @@ test('Get the initial mouse position.', function(t)
14
13
test ( 'Move the mouse.' , function ( t )
15
14
{
16
15
t . plan ( 3 ) ;
16
+ lastKnownPos = robot . moveMouse ( 0 , 0 ) ;
17
17
t . ok ( robot . moveMouse ( 100 , 100 ) , 'successfully moved the mouse.' ) ;
18
18
currentPos = robot . getMousePos ( ) ;
19
19
t . ok ( currentPos . x !== lastKnownPos . x , 'mousepos.x has changed.' ) ;
You can’t perform that action at this time.
0 commit comments