Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7729)

Unified Diff: chrome/test/chromedriver/test/run_py_tests.py

Issue 101203012: [chromedriver] Add an error autoreporting feature that automatically raises errors from browser logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from review Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/session_commands_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'))
« no previous file with comments | « chrome/test/chromedriver/session_commands_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698