tor-browser

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

commit 303c960d005e10ec0cbc9b0e5db6f1c369fee1c0
parent 24d78adac95887e3d6fca4d5cc8e4fb88cf355ae
Author: Alexandra Borovova <aborovova@mozilla.com>
Date:   Thu,  4 Dec 2025 13:47:11 +0000

Bug 2003992 - [wdspec] Add a test case with "locale" equal "undefined" for "emulation.setLocaleOverride". r=whimboo

Differential Revision: https://phabricator.services.mozilla.com/D275042

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

diff --git a/testing/web-platform/tests/webdriver/tests/bidi/emulation/set_locale_override/invalid.py b/testing/web-platform/tests/webdriver/tests/bidi/emulation/set_locale_override/invalid.py @@ -1,6 +1,7 @@ import pytest import webdriver.bidi.error as error +from webdriver.bidi.undefined import UNDEFINED pytestmark = pytest.mark.asyncio @@ -91,6 +92,14 @@ async def test_params_user_contexts_entry_invalid_value(bidi_session, value): ) +async def test_params_locale_missing(bidi_session, top_context): + with pytest.raises(error.InvalidArgumentException): + await bidi_session.emulation.set_locale_override( + locale=UNDEFINED, + contexts=[top_context["context"]], + ) + + @pytest.mark.parametrize("value", [False, 42, {}, []]) async def test_params_locale_invalid_type(bidi_session, top_context, value): with pytest.raises(error.InvalidArgumentException):