]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/522-rename-assigned-workspace.t
Workspace renaming: Interpret outputs as nondirectional
[i3/i3] / testcases / t / 522-rename-assigned-workspace.t
index 981471f78f7821eb0f6ef495f3721484f6d656ce..8a6edc857afd02e760c2197dbc38faa801531385 100644 (file)
@@ -28,6 +28,7 @@ workspace 1 output fake-0
 workspace 2 output fake-1
 workspace 3:foo output fake-1
 workspace baz output fake-1
+workspace 5 output left
 EOT
 
 my $i3 = i3(get_socket_path());
@@ -82,4 +83,15 @@ cmd 'rename workspace to baz';
 is(get_output_for_workspace('baz'), 'fake-1',
     'Renaming the workspace to a number and name should move it to the assigned output');
 
+##########################################################################
+# Renaming a workspace so that it is assigned a directional output does
+# not move the workspace or crash
+##########################################################################
+
+cmd 'focus output fake-0';
+cmd 'workspace bar';
+cmd 'rename workspace to 5';
+is(get_output_for_workspace('5'), 'fake-0',
+    'Renaming the workspace to a workspace assigned to a directional output should not move the workspace');
+
 done_testing;