Skip to content

Commit

Permalink
Move the mouse in the moveMouse test.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Jul 26, 2015
1 parent 3043db2 commit cf93363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var lastKnownPos, currentPos;
test('Get the initial mouse position.', function(t)
{
t.plan(3);
robot.moveMouse(0, 0);
t.ok(lastKnownPos = robot.getMousePos(), 'successfully retrieved mouse position.');
t.ok(lastKnownPos.x !== undefined, 'mousepos.x is a valid value.');
t.ok(lastKnownPos.y !== undefined, 'mousepos.y is a valid value.');
Expand All @@ -14,6 +13,7 @@ test('Get the initial mouse position.', function(t)
test('Move the mouse.', function(t)
{
t.plan(3);
lastKnownPos = robot.moveMouse(0, 0);
t.ok(robot.moveMouse(100, 100), 'successfully moved the mouse.');
currentPos = robot.getMousePos();
t.ok(currentPos.x !== lastKnownPos.x, 'mousepos.x has changed.');
Expand Down

0 comments on commit cf93363

Please sign in to comment.