From 041df96759698904b787060152c65313e83fc592 Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Sat, 28 May 2016 21:51:02 -0500 Subject: [PATCH] Fix whitespace. --- test/keyboard.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/keyboard.js b/test/keyboard.js index 92ec0724..cb36c080 100644 --- a/test/keyboard.js +++ b/test/keyboard.js @@ -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(); -}); \ No newline at end of file +});