mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
bpo-44844: Enable detection of Microsoft Edge browser in webbrowser module (GH-29908)
This commit is contained in:
parent
89e6a34461
commit
fd1947ecfb
3 changed files with 42 additions and 0 deletions
|
@ -95,6 +95,31 @@ class ChromeCommandTest(CommandTestMixin, unittest.TestCase):
|
|||
arguments=[URL])
|
||||
|
||||
|
||||
class EdgeCommandTest(CommandTestMixin, unittest.TestCase):
|
||||
|
||||
browser_class = webbrowser.Edge
|
||||
|
||||
def test_open(self):
|
||||
self._test('open',
|
||||
options=[],
|
||||
arguments=[URL])
|
||||
|
||||
def test_open_with_autoraise_false(self):
|
||||
self._test('open', kw=dict(autoraise=False),
|
||||
options=[],
|
||||
arguments=[URL])
|
||||
|
||||
def test_open_new(self):
|
||||
self._test('open_new',
|
||||
options=['--new-window'],
|
||||
arguments=[URL])
|
||||
|
||||
def test_open_new_tab(self):
|
||||
self._test('open_new_tab',
|
||||
options=[],
|
||||
arguments=[URL])
|
||||
|
||||
|
||||
class MozillaCommandTest(CommandTestMixin, unittest.TestCase):
|
||||
|
||||
browser_class = webbrowser.Mozilla
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue