From 84edc0c53518d014cd897f4b987ef545b7e68110 Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Sat, 24 Oct 2015 13:25:51 -0500 Subject: [PATCH] Log currentPos to help debug. --- test/mouse.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/mouse.js b/test/mouse.js index c325e76c..4dceebf6 100644 --- a/test/mouse.js +++ b/test/mouse.js @@ -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.'); });