summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js
blob: 26f7007418fc5e80db8d6c5698723621f8c9f0ca (plain)
1
2
3
4
5
6
7
8
9
10
11
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");