Skip to content

Commit

Permalink
Fix whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed May 29, 2016
1 parent 7543df7 commit 041df96
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ 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)
{
var nums = '0123456789'.split('');
var nums = '0123456789'.split('');

for (var x in nums)
for (var x in nums)
{
if (os.platform() === 'linux')
{
if (os.platform() === 'linux')
{
/* jshint loopfunc:true */
t.throws(function()
{
robot.keyTap('numpad_' + nums[x]);
}, /Invalid key code/, 'tap ' + 'numpad_' + nums[x] + ' threw an error.');
}
else
/* jshint loopfunc:true */
t.throws(function()
{
t.ok(robot.keyTap('numpad_' + nums[x]), 'tap ' + 'numpad_' + nums[x] + '.');
}
robot.keyTap('numpad_' + nums[x]);
}, /Invalid key code/, 'tap ' + 'numpad_' + nums[x] + ' threw an error.');
}
else
{
t.ok(robot.keyTap('numpad_' + nums[x]), 'tap ' + 'numpad_' + nums[x] + '.');
}
}

t.end();
});
});

0 comments on commit 041df96

Please sign in to comment.