X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F504-move-workspace-to-output.t;h=c43b8b407a39523336e0cacbb821e4508e699b75;hb=c71f6f8f7c314434f790162a155f910c01233e41;hp=efe0d6e7ab76f0587d429d82dac16cd2233a17e1;hpb=2314f107784196d8fc7ee500645dbdf548f91386;p=i3%2Fi3 diff --git a/testcases/t/504-move-workspace-to-output.t b/testcases/t/504-move-workspace-to-output.t index efe0d6e7..c43b8b40 100644 --- a/testcases/t/504-move-workspace-to-output.t +++ b/testcases/t/504-move-workspace-to-output.t @@ -19,9 +19,6 @@ use List::Util qw(first); use i3test i3_autostart => 0; -# TODO: -# introduce 'move workspace 3 to output ' with synonym 'move workspace 3 to ' - # Ensure the pointer is at (0, 0) so that we really start on the first # (the left) workspace. $x->root->warp_pointer(0, 0); @@ -163,6 +160,26 @@ ok(!($empty_ws ~~ @$x0), 'empty_ws not on fake-0'); ok(!($empty_ws ~~ @$x1), 'empty_ws not on fake-1'); ok($other_output_ws ~~ @$x0, 'other_output_ws on fake-0'); -exit_gracefully($pid); +################################################################################ +# Verify that the special word 'current' can be used for the output. +################################################################################ +my $ws1 = fresh_workspace(output => 1); +open_window; +cmd 'mark marked'; + +my $ws0 = fresh_workspace(output => 0); + +($x0, $x1) = workspaces_per_screen(); +ok($ws0 ~~ @$x0, 'ws0 on fake-0'); +ok($ws1 ~~ @$x1, 'ws1 on fake-1'); + +cmd '[con_mark=marked] move workspace to output current'; + +($x0, $x1) = workspaces_per_screen(); +ok($ws1 ~~ @$x0, 'ws1 on fake-0'); + +################################################################################ + +exit_gracefully($pid); done_testing;