aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-11-06 14:54:57 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-11-06 14:54:57 -0600
commit7b37016d3e8114cbb19c25121185e799a5fb342f (patch)
tree50c408c5948d8cd998ff93176c4933d0a18daa2c
parent75636fb425e2ea398f2883197bde70b96900cb6d (diff)
downloadayatana-indicator-power-7b37016d3e8114cbb19c25121185e799a5fb342f.tar.gz
ayatana-indicator-power-7b37016d3e8114cbb19c25121185e799a5fb342f.tar.bz2
ayatana-indicator-power-7b37016d3e8114cbb19c25121185e799a5fb342f.zip
in TestDevice.ChoosePrimary, add another test (currently failing) to confirm that when indicator-datetime is choosing from devices that are neither charging nor discharging, batteries are more interesting than other devices, and other devices are more interesting than UP_DEVICE_KIND_LINE_POWER
-rw-r--r--tests/test-device.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc
index 16194c9..27cbf35 100644
--- a/tests/test-device.cc
+++ b/tests/test-device.cc
@@ -601,6 +601,7 @@ TEST_F(DeviceTest, ChoosePrimary)
{ UP_DEVICE_KIND_BATTERY, UP_DEVICE_STATE_CHARGING, 49, 100.0 },
{ UP_DEVICE_KIND_BATTERY, UP_DEVICE_STATE_CHARGING, 48, 50.0 },
{ UP_DEVICE_KIND_BATTERY, UP_DEVICE_STATE_FULLY_CHARGED, 0, 50.0 },
+ { UP_DEVICE_KIND_KEYBOARD, UP_DEVICE_STATE_FULLY_CHARGED, 0, 50.0 },
{ UP_DEVICE_KIND_LINE_POWER, UP_DEVICE_STATE_UNKNOWN, 0, 0.0 }
};