Skip to content

Commit

Permalink
Confirm that the mouse is in the correct location.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Jul 26, 2015
1 parent cf93363 commit 8081dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ test('Move the mouse.', function(t)
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.');
t.ok(currentPos.y !== lastKnownPos.y, 'mousepos.y has changed.');
t.ok(currentPos.x === 100, 'mousepos.x is correct.');
t.ok(currentPos.y === 100, 'mousepos.y is correct.');
});

0 comments on commit 8081dd1

Please sign in to comment.