Commit 041df96 1 parent 7543df7 commit 041df96 Copy full SHA for 041df96
File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -37,23 +37,23 @@ test('Tap all keys.', function(t)
37
37
// This test won't fail if there's an issue, but it will help you identify an issue if ran locally.
38
38
test ( 'Tap all numpad keys.' , function ( t )
39
39
{
40
- var nums = '0123456789' . split ( '' ) ;
40
+ var nums = '0123456789' . split ( '' ) ;
41
41
42
- for ( var x in nums )
42
+ for ( var x in nums )
43
+ {
44
+ if ( os . platform ( ) === 'linux' )
43
45
{
44
- if ( os . platform ( ) === 'linux' )
45
- {
46
- /* jshint loopfunc:true */
47
- t . throws ( function ( )
48
- {
49
- robot . keyTap ( 'numpad_' + nums [ x ] ) ;
50
- } , / I n v a l i d k e y c o d e / , 'tap ' + 'numpad_' + nums [ x ] + ' threw an error.' ) ;
51
- }
52
- else
46
+ /* jshint loopfunc:true */
47
+ t . throws ( function ( )
53
48
{
54
- t . ok ( robot . keyTap ( 'numpad_' + nums [ x ] ) , 'tap ' + 'numpad_' + nums [ x ] + '.' ) ;
55
- }
49
+ robot . keyTap ( 'numpad_' + nums [ x ] ) ;
50
+ } , / I n v a l i d k e y c o d e / , 'tap ' + 'numpad_' + nums [ x ] + ' threw an error.' ) ;
51
+ }
52
+ else
53
+ {
54
+ t . ok ( robot . keyTap ( 'numpad_' + nums [ x ] ) , 'tap ' + 'numpad_' + nums [ x ] + '.' ) ;
56
55
}
56
+ }
57
57
58
58
t . end ( ) ;
59
- } ) ;
59
+ } ) ;
You can’t perform that action at this time.
0 commit comments