X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F174-border-config.t;h=66e2cb657dc45db436d2ac9ce5858e7d41e574d1;hb=1aaf9f2e52efd00ba207c2c726104bfbc61fe6b5;hp=2586657b8f6b97f47fde6e0e3531d30b0a2a9f3f;hpb=f32cc6f4ae3f92c63d2f738b69d84269be8549ab;p=i3%2Fi3 diff --git a/testcases/t/174-border-config.t b/testcases/t/174-border-config.t index 2586657b..66e2cb65 100644 --- a/testcases/t/174-border-config.t +++ b/testcases/t/174-border-config.t @@ -1,6 +1,19 @@ #!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) +# # Tests the new_window and new_float config option. # @@ -52,7 +65,8 @@ $first = open_window; @content = @{get_ws_content($tmp)}; ok(@content == 1, 'one container opened'); -is($content[0]->{border}, '1pixel', 'border normal by default'); +is($content[0]->{border}, 'pixel', 'border pixel by default'); +is($content[0]->{current_border_width}, 1, 'border width pixels 1 (default)'); exit_gracefully($pid); @@ -106,7 +120,7 @@ $wscontent = get_ws($tmp); @floating = @{$wscontent->{floating_nodes}}; ok(@floating == 1, 'one floating container opened'); $floatingcon = $floating[0]; -is($floatingcon->{nodes}->[0]->{border}, '1pixel', 'border normal by default'); +is($floatingcon->{nodes}->[0]->{border}, 'pixel', 'border pixel by default'); exit_gracefully($pid);