| Index: chrome/test/webdriver/chromedriver_tests.py
|
| diff --git a/chrome/test/webdriver/chromedriver_tests.py b/chrome/test/webdriver/chromedriver_tests.py
|
| index 94f15928e52866fc34e6044da3164ef9520670f3..28892e2c6bdab1c577d9cacefb42394ed6891882 100755
|
| --- a/chrome/test/webdriver/chromedriver_tests.py
|
| +++ b/chrome/test/webdriver/chromedriver_tests.py
|
| @@ -503,6 +503,31 @@ class ElementEqualityTest(unittest.TestCase):
|
| self.assertTrue(result['value'])
|
|
|
|
|
| +class LoggingTest(unittest.TestCase):
|
| +
|
| + def setUp(self):
|
| + self._launcher = ChromeDriverLauncher(root_path=os.path.dirname(__file__))
|
| +
|
| + def tearDown(self):
|
| + self._launcher.Kill()
|
| +
|
| + def testNoVerboseLogging(self):
|
| + self._driver = WebDriver(self._launcher.GetURL(), {})
|
| + self._driver.execute_script('console.log("HI")')
|
| + request_url = self._launcher.GetURL() + '/log'
|
| + req = SendRequest(request_url, method='GET')
|
| + log = req.read()
|
| + self.assertTrue(':INFO:' not in log, ':INFO: in log: ' + log)
|
| +
|
| + def testVerboseLogging(self):
|
| + self._driver = WebDriver(self._launcher.GetURL(), {'chrome.verbose': True})
|
| + self._driver.execute_script('console.log("HI")')
|
| + request_url = self._launcher.GetURL() + '/log'
|
| + req = SendRequest(request_url, method='GET')
|
| + log = req.read()
|
| + self.assertTrue(':INFO:' in log, ':INFO: not in log: ' + log)
|
| +
|
| +
|
| """Chrome functional test section. All implementation tests of ChromeDriver
|
| should go above.
|
|
|
|
|