Skip to content

Commit

Permalink
Log currentPos to help debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Oct 24, 2015
1 parent 66b31b6 commit 84edc0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ test('Move the mouse.', function(t)
lastKnownPos = robot.moveMouse(0, 0);
t.ok(robot.moveMouse(100, 100), 'successfully moved the mouse.');
currentPos = robot.getMousePos();
console.log("lastKnownPos: " + lastKnownPos);
console.log("currentPos.x: " + currentPos.x + " currentPos.y: " + currentPos.y);
t.ok(currentPos.x === 100, 'mousepos.x is correct.');
t.ok(currentPos.y === 100, 'mousepos.y is correct.');
});

0 comments on commit 84edc0c

Please sign in to comment.