| 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..3bc2874fae75967b072e8824be5823c46fec0fb4 100755
|
| --- a/chrome/test/chromedriver/test/run_py_tests.py
|
| +++ b/chrome/test/chromedriver/test/run_py_tests.py
|
| @@ -631,6 +631,16 @@ class ChromeDriverTest(ChromeDriverBaseTest):
|
| self.assertEquals(logs[0]['source'], 'network')
|
| self.assertEquals(logs[1]['source'], 'javascript')
|
|
|
| + def testAutoReporting(self):
|
| + self.assertFalse(self._driver.IsAutoReporting())
|
| + self._driver.SetAutoReporting(True)
|
| + self.assertTrue(self._driver.IsAutoReporting())
|
| + url = self.GetHttpUrlForFile('/chromedriver/console_log.html')
|
| + self.assertRaisesRegexp(chromedriver.UnknownError,
|
| + '.*404.*',
|
| + self._driver.Load,
|
| + url)
|
| +
|
| def testContextMenuEventFired(self):
|
| self._driver.Load(self.GetHttpUrlForFile('/chromedriver/context_menu.html'))
|
| self._driver.MouseMoveTo(self._driver.FindElement('tagName', 'div'))
|
|
|