From: Michael Stapelberg Date: Sun, 28 Aug 2011 13:43:51 +0000 (+0200) Subject: t/66-assign: check if i3 crashes when assigning a dock window to floating X-Git-Tag: 4.0.2~8^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b0a2dad51ae3c11c40f6e15c66d08adbf79bcf7;p=i3%2Fi3 t/66-assign: check if i3 crashes when assigning a dock window to floating --- diff --git a/testcases/t/66-assign.t b/testcases/t/66-assign.t index a4a7bb0f..776710e7 100644 --- a/testcases/t/66-assign.t +++ b/testcases/t/66-assign.t @@ -182,4 +182,51 @@ exit_gracefully($process->pid); sleep 0.25; +##################################################################### +# regression test: dock clients with floating assignments should not crash +# (instead, nothing should happen - dock clients can’t float) +# ticket #501 +##################################################################### + +$config = <root->create_child( + class => WINDOW_CLASS_INPUT_OUTPUT, + rect => [ 0, 0, 30, 30 ], + background_color => '#0000ff', + window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'), +); + +$window->_create; +set_wm_class($window->id, 'special', 'special'); +$window->name('special window'); +$window->map; +sleep 0.25; + +my $content = get_ws($tmp); +ok(@{$content->{nodes}} == 0, 'no tiling cons'); +ok(@{$content->{floating_nodes}} == 0, 'one floating con'); +@docked = get_dock_clients; +is(@docked, 1, 'no dock clients yet'); + +$window->destroy; + +does_i3_live; + +exit_gracefully($process->pid); + +sleep 0.25; + done_testing;