migrate-config: also leave client.background lines unchanged (Thanks cloud)

next
Michael Stapelberg 2011-07-06 17:51:32 +02:00
parent f9af0e399e
commit 95ee21dc3b
2 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,7 @@ my @unchanged = qw(
client.focused_inactive
client.unfocused
client.urgent
client.background
);
my %workspace_names;

View File

@ -65,6 +65,7 @@ $input = <<EOT;
client.focused_inactive #FF0000 #FF0000 #FF0000
client.unfocused #00FF00 #00FF00 #00FF00
client.urgent #0000FF #0000FF #0000FF
client.background #000000
EOT
$output = migrate_config($input);
@ -80,6 +81,7 @@ ok(line_exists($output, qr|^client\.focused #2F343A #900000 #FFFFFF$|), 'client.
ok(line_exists($output, qr|^client\.focused_inactive #FF0000 #FF0000 #FF0000$|), 'client.focused_inactive unchanged');
ok(line_exists($output, qr|^client\.unfocused #00FF00 #00FF00 #00FF00$|), 'client.unfocused unchanged');
ok(line_exists($output, qr|^client\.urgent #0000FF #0000FF #0000FF$|), 'client.urgent unchanged');
ok(line_exists($output, qr|^client\.background #000000$|), 'client.background unchanged');
#####################################################################
# check whether the bar colors get removed properly