migrate-config: use \s, be a bit more whitespace tolerant (+test) (Thanks sbedivere)

Fixes: #457
This commit is contained in:
Michael Stapelberg
2011-08-28 17:01:37 +02:00
parent b76b9be75a
commit 96b219f27b
2 changed files with 18 additions and 11 deletions

View File

@ -264,6 +264,13 @@ ok(line_exists($output, qr|^bindsym Mod1\+f resize shrink right 20 px$|), 'resiz
$output = migrate_config('bindsym Mod1+f resize bottom +23');
ok(line_exists($output, qr|^bindsym Mod1\+f resize grow down 23 px$|), 'resize bottom changed');
#####################################################################
# also resizing, but with indention this time
#####################################################################
$output = migrate_config("bindsym Mod1+f resize left \t +10");
ok(line_exists($output, qr|^bindsym Mod1\+f resize grow left 10 px$|), 'resize left changed');
#####################################################################
# check whether jump's parameters get changed correctly
#####################################################################