update tests to test the output wrapping
Patch status: merged
Patch by Francesco Mazzoli
To apply this patch, use:
curl http://cr.i3wm.org/patch/22/raw.patch | git am
b/testcases/t/504-move-workspace-to-output.t
13 |
@@ -114,6 +114,16 @@ cmd 'move workspace to output left'; |
14 |
($x0, $x1) = workspaces_per_screen(); |
15 |
ok('5' ~~ @$x0, 'workspace 5 back on fake-0'); |
16 |
|
17 |
+# Verify that wrapping works |
18 |
+cmd 'move workspace to output left'; |
19 |
+($x0, $x1) = workspaces_per_screen(); |
20 |
+ok('5' ~~ @$x1, 'workspace 5 on fake-1'); |
21 |
+ |
22 |
+# Put workspace 5 where it should |
23 |
+cmd 'move workspace to output left'; |
24 |
+($x0, $x1) = workspaces_per_screen(); |
25 |
+ok('5' ~~ @$x0, 'workspace 5 on fake-0 again'); |
26 |
+ |
27 |
################################################################################ |
28 |
# Verify that coordinates of floating windows are fixed correctly when moving a |
29 |
# workspace to a different output. |