X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F135-floating-focus.t;fp=testcases%2Ft%2F135-floating-focus.t;h=4955618fcb193d6988a3bd6a9f501ea4a4544fe4;hb=0702f1fb7befbeae5914f2b1cb6b27d8809ae36b;hp=f5182e1b0f2c6a31a7cac6dd9f0ed895e18e2dbf;hpb=293517fb2ef7036b7df2e5ea64db5c9b6b268766;p=i3%2Fi3 diff --git a/testcases/t/135-floating-focus.t b/testcases/t/135-floating-focus.t index f5182e1b..4955618f 100644 --- a/testcases/t/135-floating-focus.t +++ b/testcases/t/135-floating-focus.t @@ -36,7 +36,7 @@ cmd 'floating enable'; cmd '[id="' . $second->id . '"] focus'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'second con focused'); @@ -67,7 +67,7 @@ cmd 'floating enable'; cmd '[id="' . $second->id . '"] focus'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'second con focused'); @@ -103,13 +103,13 @@ cmd 'floating enable'; cmd '[id="' . $second->id . '"] focus'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'second con focused'); cmd 'floating enable'; -sync_with_i3($x); +sync_with_i3; # now kill the second one. focus should fall back to the third one, which is # also floating @@ -132,7 +132,7 @@ $tmp = fresh_workspace; $first = open_window({ background_color => '#ff0000' }); # window 8 $second = open_window({ background_color => '#00ff00' }); # window 9 -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'second container focused'); @@ -142,31 +142,31 @@ is($x->input_focus, $second->id, 'second container focused'); cmd 'focus tiling'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $first->id, 'first (tiling) container focused'); cmd 'focus floating'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'second (floating) container focused'); cmd 'focus floating'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'second (floating) container still focused'); cmd 'focus mode_toggle'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $first->id, 'first (tiling) container focused'); cmd 'focus mode_toggle'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'second (floating) container focused'); @@ -180,37 +180,37 @@ $first = open_floating_window({ background_color => '#ff0000' });# window 10 $second = open_floating_window({ background_color => '#00ff00' }); # window 11 $third = open_floating_window({ background_color => '#0000ff' }); # window 12 -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $third->id, 'third container focused'); cmd 'focus left'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'second container focused'); cmd 'focus left'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $first->id, 'first container focused'); cmd 'focus left'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $third->id, 'focus wrapped to third container'); cmd 'focus right'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $first->id, 'focus wrapped to first container'); cmd 'focus right'; -sync_with_i3($x); +sync_with_i3; is($x->input_focus, $second->id, 'focus on second container');