diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-08-22 16:15:36 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-08-22 16:15:36 +0000 |
commit | 575a5a16fa514310d029cb3cb894f95a0836ef95 (patch) | |
tree | d8276c3e82e89fe48b08f11093feb651e45c2236 /tests/test-device.cc | |
parent | c7e1740203b41bb9cb12da0ea97477363224e3ee (diff) | |
parent | 9eee0b56872fdb9fcf5301525985821ea7bfb2af (diff) | |
download | ayatana-indicator-power-575a5a16fa514310d029cb3cb894f95a0836ef95.tar.gz ayatana-indicator-power-575a5a16fa514310d029cb3cb894f95a0836ef95.tar.bz2 ayatana-indicator-power-575a5a16fa514310d029cb3cb894f95a0836ef95.zip |
Choose the icon that's closest to the current battery charge percentage Fixes: 1186181
Approved by: Antti Kaijanmäki, PS Jenkins bot
Diffstat (limited to 'tests/test-device.cc')
-rw-r--r-- | tests/test-device.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc index 81e8a22..85ba237 100644 --- a/tests/test-device.cc +++ b/tests/test-device.cc @@ -422,10 +422,10 @@ TEST_F(DeviceTest, IconNames) INDICATOR_POWER_DEVICE_PERCENTAGE, 25.0, INDICATOR_POWER_DEVICE_TIME, (guint64)(60*60), NULL); - g_string_append_printf (expected, "%s-040;", kind_str); - g_string_append_printf (expected, "gpm-%s-040;", kind_str); - g_string_append_printf (expected, "%s-good-symbolic;", kind_str); - g_string_append_printf (expected, "%s-good", kind_str); + g_string_append_printf (expected, "%s-020;", kind_str); + g_string_append_printf (expected, "gpm-%s-020;", kind_str); + g_string_append_printf (expected, "%s-low-symbolic;", kind_str); + g_string_append_printf (expected, "%s-low", kind_str); check_icon_names (device, expected->str); g_string_truncate (expected, 0); @@ -448,10 +448,10 @@ TEST_F(DeviceTest, IconNames) INDICATOR_POWER_DEVICE_PERCENTAGE, 5.0, INDICATOR_POWER_DEVICE_TIME, (guint64)(60*60), NULL); - g_string_append_printf (expected, "%s-040;", kind_str); - g_string_append_printf (expected, "gpm-%s-040;", kind_str); - g_string_append_printf (expected, "%s-good-symbolic;", kind_str); - g_string_append_printf (expected, "%s-good", kind_str); + g_string_append_printf (expected, "%s-000;", kind_str); + g_string_append_printf (expected, "gpm-%s-000;", kind_str); + g_string_append_printf (expected, "%s-caution-symbolic;", kind_str); + g_string_append_printf (expected, "%s-caution", kind_str); check_icon_names (device, expected->str); g_string_truncate (expected, 0); |