[gnome-settings-daemon] power: Fix comments in test suite
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Fix comments in test suite
- Date: Fri, 18 Jan 2013 15:24:33 +0000 (UTC)
commit 2250b57bca9d70a4af572ff60b9524a9581d2a03
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 18 16:23:57 2013 +0100
power: Fix comments in test suite
plugins/power/test.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index bce4751..2e1cfdc 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -132,7 +132,7 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
while timeout > 0:
time.sleep(1)
timeout -= 1
- # check that it requested suspend
+ # check that it requested blank
try:
log = self.plugin_log.read()
except IOError:
@@ -152,7 +152,7 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
while timeout > 0:
time.sleep(1)
timeout -= 1
- # check that it requested suspend
+ # check that it requested unblank
try:
log = self.plugin_log.read()
except IOError:
@@ -166,12 +166,12 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
def check_no_blank(self, seconds):
'''Check that no blank is requested in the given time'''
- # wait for specified time to ensure it didn't do anything
+ # wait for specified time to ensure it didn't blank
time.sleep(seconds)
- # check that it did not suspend or hibernate
+ # check that it did not blank
log = self.daemon.stdout.read()
if log:
- self.assertFalse(b'TESTSUITE: Blanked screen' in log, 'unexpected Blank request')
+ self.assertFalse(b'TESTSUITE: Blanked screen' in log, 'unexpected blank request')
def test_sleep_inactive_blank(self):
'''screensaver/blank interaction'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]