]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/201-config-parser.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 201-config-parser.t
index ab3d7314369111682493d1703898ab8c936337fd..266d29593e37b923a932f7ed85c085f3e89cb335 100644 (file)
@@ -44,6 +44,7 @@ my $config = <<'EOT';
 mode "meh" {
     bindsym Mod1 + Shift +   x resize grow
     bindcode Mod1+44 resize shrink
+    bindsym --release Mod1+x exec foo
 }
 EOT
 
@@ -51,6 +52,7 @@ my $expected = <<'EOT';
 cfg_enter_mode(meh)
 cfg_mode_binding(bindsym, Mod1,Shift, x, (null), resize grow)
 cfg_mode_binding(bindcode, Mod1, 44, (null), resize shrink)
+cfg_mode_binding(bindsym, Mod1, x, --release, exec foo)
 EOT
 
 is(parser_calls($config),
@@ -202,6 +204,24 @@ is(parser_calls($config),
    $expected,
    'workspace_layout ok');
 
+################################################################################
+# workspace assignments, with trailing whitespace (ticket #921)
+################################################################################
+
+$config = <<'EOT';
+workspace "3" output DP-1 
+workspace "3" output           VGA-1   
+EOT
+
+$expected = <<'EOT';
+cfg_workspace(3, DP-1)
+cfg_workspace(3, VGA-1)
+EOT
+
+is(parser_calls($config),
+   $expected,
+   'workspace assignment ok');
+
 ################################################################################
 # new_window
 ################################################################################