Bug 1476131 [wpt PR 12004] - Adding explicit call to session.end for WebDriver delete session tests, a=testonly

Automatic update from web-platform-testswebdriver: add explicit call to session.end for delete session tests (#12004)

For the "delete session" command tests, the recent changes to the fixture
to create and delete sessions are bypassed. This means that at the end of
each delete session test, the harness thinks a valid session still exists.
Making an explicit call to `session.end()` at the end of each test will
put the tracking variables in the correct state for the harness to start a
new session with the next test.
--

wpt-commits: e385fa4925f71b4ac37de4c3ce235914748881f6
wpt-pr: 12004
This commit is contained in:
jimevans 2018-07-25 16:04:11 +00:00 коммит произвёл James Graham
Родитель e1c63f27a8
Коммит af2827a8d1
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -624262,7 +624262,7 @@
"support"
],
"webdriver/tests/delete_session/delete.py": [
"7a0daf0ff25eec988dc0a5260a36cb60c8e13703",
"a84961c8abda433f6255a2fa137ecf2b2ac435c5",
"wdspec"
],
"webdriver/tests/dismiss_alert/__init__.py": [

Просмотреть файл

@ -13,6 +13,9 @@ def test_null_response_value(session):
response = delete_session(session)
value = assert_success(response)
assert value is None
# Need an explicit call to session.end() to notify the test harness
# that a new session needs to be created for subsequent tests.
session.end()
def test_dismissed_beforeunload_prompt(session):
@ -33,3 +36,7 @@ def test_dismissed_beforeunload_prompt(session):
# A beforeunload prompt has to be automatically dismissed, and the session deleted
with pytest.raises(error.InvalidSessionIdException):
session.alert.text
# Need an explicit call to session.end() to notify the test harness
# that a new session needs to be created for subsequent tests.
session.end()