diff --git a/testing/web-platform/tests/kv-storage/secure-context/import-maps.html b/testing/web-platform/tests/kv-storage/secure-context/import-maps.html
index 64301f03032c0..211b9e43b1f18 100644
--- a/testing/web-platform/tests/kv-storage/secure-context/import-maps.html
+++ b/testing/web-platform/tests/kv-storage/secure-context/import-maps.html
@@ -15,7 +15,7 @@
diff --git a/testing/web-platform/tests/kv-storage/secure-context/import-statement.html b/testing/web-platform/tests/kv-storage/secure-context/import-statement.html
index db01152a4e155..71e14b04e3144 100644
--- a/testing/web-platform/tests/kv-storage/secure-context/import-statement.html
+++ b/testing/web-platform/tests/kv-storage/secure-context/import-statement.html
@@ -13,13 +13,14 @@
assert_false(self.isSecureContext, "This test must run in a non-secure context");
}, "Prerequisite check");
-async_test(t => {
- window.addEventListener("error", t.step_func_done(errorEvent => {
- assert_equals(errorEvent.error.constructor, TypeError, "Must trigger a TypeError");
- }, { once: true }));
-});
+const t = async_test('Static import kv-storage in non-secure context');
+
+window.addEventListener("error", t.step_func_done(errorEvent => {
+ assert_equals(errorEvent.error.constructor, TypeError, "Must trigger a TypeError");
+}, { once: true }));
-