var test = require('tape');
var robot = require('..');
var lastKnownPos, currentPos;

//Increase delay to help test reliability.
robot.setMouseDelay(100);

test('Get the initial mouse position.', function(t) 
{
	t.plan(3);
	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.');
});

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();
	console.log("mousepos.x: " + currentPos.x);
	t.ok(currentPos.x === 100, 'mousepos.x is correct.');
	console.log("mousepos.y: " + currentPos.y);
	t.ok(currentPos.y === 100, 'mousepos.y is correct.');
});

@@ -640,53 +640,8 @@
 ();%0A
-%09console.log(%22mousepos.x: %22 + currentPos.x);%0A
 %09t.o
@@ -695,53 +695,8 @@
 ');%0A
-%09console.log(%22mousepos.y: %22 + currentPos.y);%0A
 %09t.o

Remove logging.