Commit 15be67c1 authored by Caleb Rouleau's avatar Caleb Rouleau Committed by Commit Bot

[ChromeDriver] Delete abnormal exit test. Broken on windows and mac.

This test isn't really necessary. The case is handled slightly differently
on windows and mac, but it is not important to the product.

This test was just added in https://chromium-review.googlesource.com/c/chromium/src/+/1106769

https://ci.chromium.org/p/chromium/builders/luci.chromium.try/win7_chromium_rel_ng/22045
https://ci.chromium.org/p/chromium/builders/luci.chromium.try/mac_chromium_rel_ng/78366

Bug: chromedriver:2474
Change-Id: I3a339886e479182ec28914292c43d8dbe62d5e84
Reviewed-on: https://chromium-review.googlesource.com/1111323Reviewed-by: default avatarYuly Novikov <ynovikov@chromium.org>
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569481}
parent ccba9a5f
......@@ -2657,32 +2657,6 @@ class LaunchDesktopTest(ChromeDriverBaseTest):
finally:
shutil.rmtree(user_data_dir, ignore_errors=True)
def testHelpfulErrorMessage_AbnormalExit(self):
"""If Chrome fails to start abnormally, we should provide a useful error
message."""
file_descriptor, path = tempfile.mkstemp()
try:
os.close(file_descriptor)
exception_raised = False
try:
driver = chromedriver.ChromeDriver(_CHROMEDRIVER_SERVER_URL,
chrome_binary=path,
test_name=self.id())
except Exception as e:
self.assertIn('Chrome failed to start', e.message)
self.assertIn('exited abnormally', e.message)
self.assertIn('ChromeDriver is assuming that Chrome has crashed',
e.message)
exception_raised = True
self.assertTrue(exception_raised)
try:
driver.Quit()
except:
pass
finally:
pass
os.remove(path)
def testHelpfulErrorMessage_NormalExit(self):
"""If Chrome fails to start, we should provide a useful error message."""
if util.IsWindows():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment