diff options
Diffstat (limited to 'testing/web-platform/tests/tools/wpt/tests/test_browser.py')
-rw-r--r-- | testing/web-platform/tests/tools/wpt/tests/test_browser.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/testing/web-platform/tests/tools/wpt/tests/test_browser.py b/testing/web-platform/tests/tools/wpt/tests/test_browser.py index 95094e376d..3a45dab16e 100644 --- a/testing/web-platform/tests/tools/wpt/tests/test_browser.py +++ b/testing/web-platform/tests/tools/wpt/tests/test_browser.py @@ -30,33 +30,33 @@ def test_all_browser_abc(): assert not inspect.isabstract(cls), "%s is abstract" % name -def test_edgechromium_webdriver_supports_browser(): +def test_edge_webdriver_supports_browser(): # MSEdgeDriver binary cannot be called. - edge = browser.EdgeChromium(logger) + edge = browser.Edge(logger) edge.webdriver_version = mock.MagicMock(return_value=None) assert not edge.webdriver_supports_browser('/usr/bin/edgedriver', '/usr/bin/edge', 'stable') # Browser binary cannot be called. - edge = browser.EdgeChromium(logger) + edge = browser.Edge(logger) edge.webdriver_version = mock.MagicMock(return_value='70.0.1') edge.version = mock.MagicMock(return_value=None) assert edge.webdriver_supports_browser('/usr/bin/edgedriver', '/usr/bin/edge', 'stable') # Browser version matches. - edge = browser.EdgeChromium(logger) + edge = browser.Edge(logger) # Versions should be an exact match to be compatible. edge.webdriver_version = mock.MagicMock(return_value='70.1.5') edge.version = mock.MagicMock(return_value='70.1.5') assert edge.webdriver_supports_browser('/usr/bin/edgedriver', '/usr/bin/edge', 'stable') # Browser version doesn't match. - edge = browser.EdgeChromium(logger) + edge = browser.Edge(logger) edge.webdriver_version = mock.MagicMock(return_value='70.0.1') edge.version = mock.MagicMock(return_value='69.0.1') assert not edge.webdriver_supports_browser('/usr/bin/edgedriver', '/usr/bin/edge', 'stable') # MSEdgeDriver version should match for MAJOR.MINOR.BUILD version. - edge = browser.EdgeChromium(logger) + edge = browser.Edge(logger) edge.webdriver_version = mock.MagicMock(return_value='70.0.1.0') edge.version = mock.MagicMock(return_value='70.0.1.1 dev') assert edge.webdriver_supports_browser('/usr/bin/edgedriver', '/usr/bin/edge', 'dev') @@ -68,8 +68,8 @@ def test_edgechromium_webdriver_supports_browser(): # logic to test there. @pytest.mark.skipif(sys.platform.startswith('win'), reason='just uses _get_fileversion on Windows') @mock.patch('tools.wpt.browser.call') -def test_edgechromium_webdriver_version(mocked_call): - edge = browser.EdgeChromium(logger) +def test_edge_webdriver_version(mocked_call): + edge = browser.Edge(logger) webdriver_binary = '/usr/bin/edgedriver' # Working cases. |