aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-23 12:10:26 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-08-23 12:10:26 -0500
commit90f4785b783466015127e1d37627ee81de182f2f (patch)
treea45cb71731ba27ff4d92715f87249babd15c8170
parentb1f32d5edaf6291f03985584fca84a6180fafccb (diff)
downloadayatana-indicator-power-90f4785b783466015127e1d37627ee81de182f2f.tar.gz
ayatana-indicator-power-90f4785b783466015127e1d37627ee81de182f2f.tar.bz2
ayatana-indicator-power-90f4785b783466015127e1d37627ee81de182f2f.zip
update the tests to look at the 24 hour threshold
-rw-r--r--tests/test-device.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc
index 130ef16..0ccd8d1 100644
--- a/tests/test-device.cc
+++ b/tests/test-device.cc
@@ -523,12 +523,12 @@ TEST_F(DeviceTest, Labels)
"(50%)",
"Battery (1 hour 1 minute left, 50%)");
- // discharging, > 12 hours left
- // we don't show the clock time when > 12 hours dischargin
+ // discharging, > 24 hours left
+ // we don't show the clock time when > 24 hours discharging
g_object_set (o, INDICATOR_POWER_DEVICE_KIND, UP_DEVICE_KIND_BATTERY,
INDICATOR_POWER_DEVICE_STATE, UP_DEVICE_STATE_DISCHARGING,
INDICATOR_POWER_DEVICE_PERCENTAGE, 50.0,
- INDICATOR_POWER_DEVICE_TIME, guint64(60*60*13),
+ INDICATOR_POWER_DEVICE_TIME, guint64(60*60*25),
NULL);
check_label (device, "Battery");
check_header (device, "(50%)",