Skip to content

Commit 8081dd1

Browse files
committed
Confirm that the mouse is in the correct location.
1 parent cf93363 commit 8081dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/mouse.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ test('Move the mouse.', function(t)
1616
lastKnownPos = robot.moveMouse(0, 0);
1717
t.ok(robot.moveMouse(100, 100), 'successfully moved the mouse.');
1818
currentPos = robot.getMousePos();
19-
t.ok(currentPos.x !== lastKnownPos.x, 'mousepos.x has changed.');
20-
t.ok(currentPos.y !== lastKnownPos.y, 'mousepos.y has changed.');
19+
t.ok(currentPos.x === 100, 'mousepos.x is correct.');
20+
t.ok(currentPos.y === 100, 'mousepos.y is correct.');
2121
});

0 commit comments

Comments
 (0)