X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F162-regress-dock-urgent.t;h=d558b0d93eb1302e7ed410cdeae484ae35726bc9;hb=1aaf9f2e52efd00ba207c2c726104bfbc61fe6b5;hp=7a0ac48788de3258c0f9788530ca37590ee828ac;hpb=0702f1fb7befbeae5914f2b1cb6b27d8809ae36b;p=i3%2Fi3 diff --git a/testcases/t/162-regress-dock-urgent.t b/testcases/t/162-regress-dock-urgent.t index 7a0ac487..d558b0d9 100644 --- a/testcases/t/162-regress-dock-urgent.t +++ b/testcases/t/162-regress-dock-urgent.t @@ -1,11 +1,23 @@ #!perl # vim:ts=4:sw=4:expandtab # +# Please read the following documents before working on tests: +# • https://build.i3wm.org/docs/testsuite.html +# (or docs/testsuite) +# +# • https://build.i3wm.org/docs/lib-i3test.html +# (alternatively: perldoc ./testcases/lib/i3test.pm) +# +# • https://build.i3wm.org/docs/ipc.html +# (or docs/ipc) +# +# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf +# (unless you are already familiar with Perl) +# # Regression test for setting the urgent hint on dock clients. # found in 4be3178d4d360c2996217d811e61161c84d25898 # use i3test; -use X11::XCB 'WINDOW_CLASS_INPUT_OUTPUT'; my $i3 = i3(get_socket_path()); @@ -22,17 +34,10 @@ is(@docked, 0, 'no dock clients yet'); # open a dock client -my $window = $x->root->create_child( - class => WINDOW_CLASS_INPUT_OUTPUT, - rect => [ 0, 0, 30, 30], - background_color => '#FF0000', +my $window = open_window( window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'), ); -$window->map; - -sleep 0.25; - ##################################################################### # check that we can find it in the layout tree at the expected position #####################################################################