Chromium Code Reviews| Index: chrome/test/chromedriver/test/run_py_tests.py |
| diff --git a/chrome/test/chromedriver/test/run_py_tests.py b/chrome/test/chromedriver/test/run_py_tests.py |
| index 660ac7ee1d9da578947f6c4429c596460f7f38ff..7ccdbbd2e6ef5a3349cfe45a8c1ebfa26e613e9e 100755 |
| --- a/chrome/test/chromedriver/test/run_py_tests.py |
| +++ b/chrome/test/chromedriver/test/run_py_tests.py |
| @@ -631,6 +631,13 @@ class ChromeDriverTest(ChromeDriverBaseTest): |
| self.assertEquals(logs[0]['source'], 'network') |
| self.assertEquals(logs[1]['source'], 'javascript') |
| + def testAutoReporting(self): |
| + self.assertFalse(self._driver.IsAutoReportingEnabled()) |
| + self._driver.SetAutoReportingEnabled(True) |
| + self.assertTrue(self._driver.IsAutoReportingEnabled()) |
| + url = self.GetHttpUrlForFile('/chromedriver/console_log.html') |
| + self.assertRaises(chromedriver.UnknownError, self._driver.Load, url) |
|
frankf
2014/01/08 01:23:49
Can you actually check the message using assertRai
samuong
2014/01/16 00:29:28
Done.
|
| + |
| def testContextMenuEventFired(self): |
| self._driver.Load(self.GetHttpUrlForFile('/chromedriver/context_menu.html')) |
| self._driver.MouseMoveTo(self._driver.FindElement('tagName', 'div')) |