summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webdriver/tests/bidi/storage/set_cookie/invalid.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/webdriver/tests/bidi/storage/set_cookie/invalid.py')
-rw-r--r--testing/web-platform/tests/webdriver/tests/bidi/storage/set_cookie/invalid.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/web-platform/tests/webdriver/tests/bidi/storage/set_cookie/invalid.py b/testing/web-platform/tests/webdriver/tests/bidi/storage/set_cookie/invalid.py
index 53d2573575..9962d303a1 100644
--- a/testing/web-platform/tests/webdriver/tests/bidi/storage/set_cookie/invalid.py
+++ b/testing/web-platform/tests/webdriver/tests/bidi/storage/set_cookie/invalid.py
@@ -122,5 +122,9 @@ async def test_partition_storage_key_user_context_invalid_type(set_cookie, test_
with pytest.raises(error.InvalidArgumentException):
await set_cookie(cookie=create_cookie(domain=domain_value()), partition=partition)
-# TODO: test `test_partition_storage_key_user_context_unknown`.
-# TODO: test `test_partition_storage_key_user_context_invalid_type`.
+
+async def test_partition_storage_key_user_context_invalid_value(set_cookie, domain_value):
+ partition = StorageKeyPartitionDescriptor(user_context="foo")
+
+ with pytest.raises(error.NoSuchUserContextException):
+ await set_cookie(cookie=create_cookie(domain=domain_value()), partition=partition)