X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F187-commands-parser.t;h=52070d56b1090b55b31e4d87b11dcf7e21767bab;hb=9bfe6a6236ca733a4fc4e072b5014e01d430bfd9;hp=335c775de346e1b0c9661e2e21e4a608470a0d83;hpb=fb4ee17b054afa2f85ad64480353f554e5eae2d3;p=i3%2Fi3 diff --git a/testcases/t/187-commands-parser.t b/testcases/t/187-commands-parser.t index 335c775d..52070d56 100644 --- a/testcases/t/187-commands-parser.t +++ b/testcases/t/187-commands-parser.t @@ -1,6 +1,19 @@ #!perl # vim:ts=4:sw=4:expandtab # +# Please read the following documents before working on tests: +# • http://build.i3wm.org/docs/testsuite.html +# (or docs/testsuite) +# +# • http://build.i3wm.org/docs/lib-i3test.html +# (alternatively: perldoc ./testcases/lib/i3test.pm) +# +# • http://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 standalone parser binary to see if it calls the right code when # confronted with various commands, if it prints proper error messages for # wrong commands and if it terminates in every case. @@ -39,6 +52,8 @@ is(parser_calls( 'move window to workspace 3; ' . 'move container to workspace 3; ' . 'move workspace foobar; ' . + 'move workspace torrent; ' . + 'move workspace to output LVDS1; ' . 'move workspace 3: foobar; ' . 'move workspace "3: foobar"; ' . 'move workspace "3: foobar, baz"; '), @@ -46,6 +61,8 @@ is(parser_calls( "cmd_move_con_to_workspace_name(3)\n" . "cmd_move_con_to_workspace_name(3)\n" . "cmd_move_con_to_workspace_name(foobar)\n" . + "cmd_move_con_to_workspace_name(torrent)\n" . + "cmd_move_workspace_to_output(LVDS1)\n" . "cmd_move_con_to_workspace_name(3: foobar)\n" . "cmd_move_con_to_workspace_name(3: foobar)\n" . "cmd_move_con_to_workspace_name(3: foobar, baz)",