Skip to content

Commit

Permalink
Don't run numpad tests on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed May 25, 2016
1 parent 8e24802 commit d7cc60e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/keyboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var test = require('tape');
var robot = require('..');
var os = require('os');

//TODO: Need tests for keyToggle, typeString, typeStringDelayed, and setKeyboardDelay.

Expand Down Expand Up @@ -36,6 +37,12 @@ test('Tap all keys.', 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 numpad keys.', function(t)
{
if (os.platform() === 'linux')
{
t.skip("No numpad keycodes on Linux.");
t.end();
}

var nums = '0123456789'.split('');

for (var x in nums)
Expand Down

0 comments on commit d7cc60e

Please sign in to comment.