aboutsummaryrefslogtreecommitdiff
path: root/testcases/t/201-config-parser.t
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2020-04-10 18:32:56 +0200
committerMichael Stapelberg <michael@stapelberg.de>2020-04-11 15:13:51 +0200
commit08b25407f0ef32f7fdfdd25db1443dc22573d0cc (patch)
treeaac5c847ab79b4c135e2daf3ce8b817524db2eac /testcases/t/201-config-parser.t
parent1eb7cb248b9c0b8b9f4b3c82f030690b3586eaf5 (diff)
downloadi3-orestisfl/A_I3_FLOATING_WINDOW.tar.gz
i3-orestisfl/A_I3_FLOATING_WINDOW.zip
use floating_from="auto" or "user" (and tiling_from) syntaxorestisfl/A_I3_FLOATING_WINDOW
Diffstat (limited to 'testcases/t/201-config-parser.t')
-rw-r--r--testcases/t/201-config-parser.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/testcases/t/201-config-parser.t b/testcases/t/201-config-parser.t
index a8d45325..872522d1 100644
--- a/testcases/t/201-config-parser.t
+++ b/testcases/t/201-config-parser.t
@@ -99,11 +99,22 @@ is(parser_calls($config),
$config = <<'EOT';
for_window [class="^Chrome"] floating enable
+for_window [class=^Chrome] floating enable
+for_window [floating_from="auto" class="==Class=="] nop floating
+for_window [floating_from=auto class="==Class=="] nop floating
EOT
$expected = <<'EOT';
cfg_criteria_add(class, ^Chrome)
cfg_for_window(floating enable)
+cfg_criteria_add(class, ^Chrome)
+cfg_for_window(floating enable)
+cfg_criteria_add(floating_from, auto)
+cfg_criteria_add(class, ==Class==)
+cfg_for_window(nop floating)
+cfg_criteria_add(floating_from, auto)
+cfg_criteria_add(class, ==Class==)
+cfg_for_window(nop floating)
EOT
is(parser_calls($config),