]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/243-move-to-mark.t
Disallow moving a container to itself since this would crash i3.
[i3/i3] / testcases / t / 243-move-to-mark.t
index f3451675d51228b31f6d09b7dd12545b1efd9945..86d718643aaeb70ef6ef28708905156e34da0e50 100644 (file)
@@ -268,6 +268,21 @@ sync_with_i3;
 ($nodes, $focus) = get_ws_content($target_ws);
 is(@{$nodes}, 1, 'tiling container moved to the target workspace');
 
+###############################################################################
+# Given 'S' and 'M' are the same container, when 'S' is moved to 'M', then
+# the command is ignored.
+###############################################################################
+
+$ws = fresh_workspace;
+$S = open_window;
+$M = $S;
+cmd 'mark target';
+
+cmd '[id="' . $S->{id} . '"] move container to mark target';
+sync_with_i3;
+
+does_i3_live;
+
 ###############################################################################
 
 done_testing;