summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional/chromeos_power.py
blob: b14886d08f647dec157fa220114d066761d52b69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import logging

import pyauto_functional
import pyauto


class ChromeosPower(pyauto.PyUITest):
  """Tests for ChromeOS power library and daemon."""

  def testBatteryInfo(self):
    """Print some information about the battery."""
    result = self.GetBatteryInfo()
    self.assertTrue(result)
    logging.debug(result)


if __name__ == '__main__':
  pyauto_functional.Main()