Skip to content

Commit cf93363

Browse files
committed
Move the mouse in the moveMouse test.
1 parent 3043db2 commit cf93363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mouse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ var lastKnownPos, currentPos;
55
test('Get the initial mouse position.', function(t)
66
{
77
t.plan(3);
8-
robot.moveMouse(0, 0);
98
t.ok(lastKnownPos = robot.getMousePos(), 'successfully retrieved mouse position.');
109
t.ok(lastKnownPos.x !== undefined, 'mousepos.x is a valid value.');
1110
t.ok(lastKnownPos.y !== undefined, 'mousepos.y is a valid value.');
@@ -14,6 +13,7 @@ test('Get the initial mouse position.', function(t)
1413
test('Move the mouse.', function(t)
1514
{
1615
t.plan(3);
16+
lastKnownPos = robot.moveMouse(0, 0);
1717
t.ok(robot.moveMouse(100, 100), 'successfully moved the mouse.');
1818
currentPos = robot.getMousePos();
1919
t.ok(currentPos.x !== lastKnownPos.x, 'mousepos.x has changed.');

0 commit comments

Comments
 (0)