test 510: Use workspace assignments
Patch status: rejected
Patch by Tony Crisci
Long description:
Use workspace assignments to ensure that the workspace appears on the correct output in the course of the test. This change is done so the test works with Xephyr.
To apply this patch, use:
curl http://cr.i3wm.org/patch/647/raw.patch | git am
b/testcases/t/510-focus-across-outputs.t
17 |
@@ -28,10 +28,16 @@ my $config = <<EOT; |
18 |
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 |
19 |
|
20 |
fake-outputs 1024x768+0+0,1024x768+1024+0,1024x768+0+768,1024x768+1024+768 |
21 |
+ |
22 |
+workspace s0 output fake-0 |
23 |
+workspace s1 output fake-1 |
24 |
+workspace s2 output fake-2 |
25 |
+workspace s3 output fake-3 |
26 |
EOT |
27 |
my $pid = launch_with_config($config); |
28 |
|
29 |
-my $s0_ws = fresh_workspace; |
30 |
+my $s0_ws = "s0"; |
31 |
+cmd "workspace $s0_ws"; |
32 |
my $first = open_window; |
33 |
my $second = open_window; |
34 |
my $third = open_window; |
35 |
@@ -41,7 +47,8 @@ cmd 'floating toggle'; |
36 |
sync_with_i3; |
37 |
$x->root->warp_pointer(1025, 0); |
38 |
sync_with_i3; |
39 |
-my $s1_ws = fresh_workspace; |
40 |
+my $s1_ws = "s1"; |
41 |
+cmd "workspace $s1_ws"; |
42 |
|
43 |
my $fourth = open_window; |
44 |
|
45 |
@@ -49,7 +56,8 @@ my $fourth = open_window; |
46 |
sync_with_i3; |
47 |
$x->root->warp_pointer(0, 769); |
48 |
sync_with_i3; |
49 |
-my $s2_ws = fresh_workspace; |
50 |
+my $s2_ws = "s2"; |
51 |
+cmd "workspace $s2_ws"; |
52 |
|
53 |
my $fifth = open_window; |
54 |
|
55 |
@@ -57,7 +65,8 @@ my $fifth = open_window; |
56 |
sync_with_i3; |
57 |
$x->root->warp_pointer(1025, 769); |
58 |
sync_with_i3; |
59 |
-my $s3_ws = fresh_workspace; |
60 |
+my $s3_ws = "s3"; |
61 |
+cmd "workspace $s3_ws"; |
62 |
|
63 |
my $sixth = open_window; |
64 |
my $seventh = open_window; |