Chromium Code Reviews| 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""" |