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

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: 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
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'))

Powered by Google App Engine
This is Rietveld 408576698