tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 18a49a53bc126e78085cb508b87861d5ffbcdc4e
parent 3e0bdddc195dafbe4f9896b0378dc3ed1bf6643a
Author: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Date:   Mon, 10 Nov 2025 22:20:55 +0000

Bug 1998982 [wpt PR 55942] - [wdspec] Fix `webdriver/tests/bidi/emulation/set_network_conditions/contexts.py`, a=testonly

Automatic update from web-platform-tests
extend tests to restore original state (#55942)

--

wpt-commits: 60e6e3a59de74e93dc4838e18b79564d7d93164d
wpt-pr: 55942

Diffstat:
Mtesting/web-platform/tests/webdriver/tests/bidi/emulation/set_network_conditions/contexts.py | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/webdriver/tests/bidi/emulation/set_network_conditions/contexts.py b/testing/web-platform/tests/webdriver/tests/bidi/emulation/set_network_conditions/contexts.py @@ -113,6 +113,12 @@ async def test_restores_to_user_contexts_when_removed(bidi_session, assert not await get_navigator_online(affected_context) + await bidi_session.emulation.set_network_conditions( + network_conditions=None, + user_contexts=[affected_user_context]) + + assert await get_navigator_online(affected_context) + async def test_overrides_global(bidi_session, get_navigator_online, affected_user_context): @@ -169,3 +175,7 @@ async def test_restores_to_global_when_removed(bidi_session, contexts=[affected_context["context"]]) assert not await get_navigator_online(affected_context) + + await bidi_session.emulation.set_network_conditions(network_conditions=None) + + assert await get_navigator_online(affected_context)