Skip to content

Commit

Permalink
Add numpad tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed May 25, 2016
1 parent afc4863 commit 8e24802
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('Tap a key.', function(t)
});

// This test won't fail if there's an issue, but it will help you identify an issue if ran locally.
test('Tap all keys', function(t)
test('Tap all keys.', function(t)
{
var chars = 'abcdefghijklmnopqrstuvwxyz1234567890,./;\'[]\\'.split('');

Expand All @@ -30,5 +30,18 @@ test('Tap all keys', function(t)
t.ok(robot.keyTap(chars[x]), 'tap ' + chars[x] + '.');
}

t.end();
});

// This test won't fail if there's an issue, but it will help you identify an issue if ran locally.
test('Tap all numpad keys.', function(t)
{
var nums = '0123456789'.split('');

for (var x in nums)
{
t.ok(robot.keyTap('numpad_' + nums[x]), 'tap ' + 'numpad_' + nums[x] + '.');
}

t.end();
});

0 comments on commit 8e24802

Please sign in to comment.