]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/128-open-order.t
Added testcase for changing _NET_WM_WINDOW_TYPE after the window is already managed.
[i3/i3] / testcases / t / 128-open-order.t
index b638e708446606d3820b4fbfd506a744b5b1975f..e6f8069de351bd0695312ba2b27e8d3a560eed15 100644 (file)
@@ -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)
+#
 # Check if new containers are opened after the currently focused one instead
 # of always at the end
 use List::Util qw(first);
@@ -27,7 +40,7 @@ isnt($first, $second, 'different container focused');
 
 cmd qq|[con_id="$first"] focus|;
 cmd 'open';
-$content = get_ws_content($tmp);
+my $content = get_ws_content($tmp);
 ok(@{$content} == 3, 'three containers opened');
 
 is($content->[0]->{id}, $first, 'first container unmodified');