Skip to content

Commit 041df96

Browse files
committed
Fix whitespace.
1 parent 7543df7 commit 041df96

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/keyboard.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ test('Tap all keys.', function(t)
3737
// This test won't fail if there's an issue, but it will help you identify an issue if ran locally.
3838
test('Tap all numpad keys.', function(t)
3939
{
40-
var nums = '0123456789'.split('');
40+
var nums = '0123456789'.split('');
4141

42-
for (var x in nums)
42+
for (var x in nums)
43+
{
44+
if (os.platform() === 'linux')
4345
{
44-
if (os.platform() === 'linux')
45-
{
46-
/* jshint loopfunc:true */
47-
t.throws(function()
48-
{
49-
robot.keyTap('numpad_' + nums[x]);
50-
}, /Invalid key code/, 'tap ' + 'numpad_' + nums[x] + ' threw an error.');
51-
}
52-
else
46+
/* jshint loopfunc:true */
47+
t.throws(function()
5348
{
54-
t.ok(robot.keyTap('numpad_' + nums[x]), 'tap ' + 'numpad_' + nums[x] + '.');
55-
}
49+
robot.keyTap('numpad_' + nums[x]);
50+
}, /Invalid key code/, 'tap ' + 'numpad_' + nums[x] + ' threw an error.');
51+
}
52+
else
53+
{
54+
t.ok(robot.keyTap('numpad_' + nums[x]), 'tap ' + 'numpad_' + nums[x] + '.');
5655
}
56+
}
5757

5858
t.end();
59-
});
59+
});

0 commit comments

Comments
 (0)