]> git.sur5r.net Git - i3/i3/commitdiff
migrate-config: also leave client.background lines unchanged (Thanks cloud)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 6 Jul 2011 15:51:32 +0000 (17:51 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 6 Jul 2011 15:51:32 +0000 (17:51 +0200)
i3-migrate-config-to-v4.pl
testcases/t/71-config-migrate.t

index 7dc4e27e4371039c9f06286980ea47980e3ddc95..3a27c943ce86baed61b4599d4744b5b1d39efb1a 100755 (executable)
@@ -41,6 +41,7 @@ my @unchanged = qw(
     client.focused_inactive
     client.unfocused
     client.urgent
+    client.background
 );
 
 my %workspace_names;
index 9903d5450da96bc945d155526d9b1a27c2d2a451..11c70bfa2f3426cd7aaf091452e278271a880850 100644 (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