Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /infrastructure/server/http2-context.sub.h2.any.html - WPT Dashboard Interop Dashboard
- /infrastructure/server/http2-context.sub.h2.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /infrastructure/server/http2-context.sub.h2.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /infrastructure/server/http2-context.sub.h2.any.worker.html - WPT Dashboard Interop Dashboard
// 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");