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

Unified Diff: chrome/test/webdriver/chromedriver_tests.py

Issue 6630001: Allow webdriver users to choose between sending the key events when... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 10 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/webdriver/chromedriver_tests.py
===================================================================
--- chrome/test/webdriver/chromedriver_tests.py (revision 76851)
+++ chrome/test/webdriver/chromedriver_tests.py (working copy)
@@ -108,6 +108,7 @@
except urllib2.HTTPError, expected:
self.assertEquals(404, expected.code)
+class BasicServerTest(unittest.TestCase):
def testCanStartChromeDriverOnSpecificPort(self):
launcher = ChromeDriverLauncher(port=9520)
self.assertEquals(9520, launcher.GetPort())
@@ -115,7 +116,14 @@
driver.quit()
launcher.Kill()
+ def testCanStartChromeWithNativeEventsEnabled(self):
+ launcher = ChromeDriverLauncher(use_native_events=True)
+ self.assertTrue(launcher.GetUseNativeEvents())
+ driver = WebDriver(launcher.GetURL(), 'chrome', 'any')
Jason Leyba 2011/03/04 19:25:12 You're not verifying that the server has actually
timothe faudot 2011/03/07 02:45:26 This test only ensures that we can start the serve
Jason Leyba 2011/03/07 03:32:56 That's my point - you're only testing that you can
+ driver.quit()
+ launcher.Kill()
+
class CookieTest(unittest.TestCase):
"""Cookie test for the json webdriver protocol"""

Powered by Google App Engine
This is Rietveld 408576698