summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_webbrowser.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-30 17:16:33 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-30 17:16:33 (GMT)
commitc9b750d249136b88125c28cd139c4bc694c18003 (patch)
tree7b6a48922d0c0156d5d411382fd5f636347601a6 /Lib/test/test_webbrowser.py
parent32c0d3ada52109f339c081d3408546a4af024b3c (diff)
downloadcpython-c9b750d249136b88125c28cd139c4bc694c18003.zip
cpython-c9b750d249136b88125c28cd139c4bc694c18003.tar.gz
cpython-c9b750d249136b88125c28cd139c4bc694c18003.tar.bz2
Issue #23262: The webbrowser module now supports Firefox 36+ and derived
browsers. Based on patch by Oleg Broytman.
Diffstat (limited to 'Lib/test/test_webbrowser.py')
-rw-r--r--Lib/test/test_webbrowser.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/Lib/test/test_webbrowser.py b/Lib/test/test_webbrowser.py
index c3292c4..e46b6fb 100644
--- a/Lib/test/test_webbrowser.py
+++ b/Lib/test/test_webbrowser.py
@@ -95,6 +95,31 @@ class MozillaCommandTest(CommandTestMixin, unittest.TestCase):
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=[],
+ arguments=['-new-window', URL])
+
+ def test_open_new_tab(self):
+ self._test('open_new_tab',
+ options=[],
+ arguments=['-new-tab', URL])
+
+
+class NetscapeCommandTest(CommandTestMixin, unittest.TestCase):
+
+ browser_class = webbrowser.Netscape
+
+ def test_open(self):
+ self._test('open',
options=['-raise', '-remote'],
arguments=['openURL({})'.format(URL)])