summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js')
-rw-r--r--testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js b/testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js
new file mode 100644
index 0000000000..26f7007418
--- /dev/null
+++ b/testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js
@@ -0,0 +1,12 @@
+// META: global=window,dedicatedworker,sharedworker,serviceworker
+test(() => {
+ assert_true(self.isSecureContext);
+}, "Use of .h2. file name flag implies secure context");
+
+test(() => {
+ assert_equals(location.protocol, "https:");
+}, "Use of .h2. file name flag implies HTTPS scheme");
+
+test(() => {
+ assert_equals(location.port, "{{ports[h2][0]}}");
+}, "Use of .h2. file name flag implies correct port");