summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/server/secure-context.https.any.js
blob: 626fa70069d2caeddb800e4224b316ac1a0f16ff (plain)
1
2
3
4
5
6
7
8
9
10
// META: global=window,dedicatedworker,sharedworker,serviceworker
test(() => {
  assert_true(self.isSecureContext);
}, "Use of .https file name flag implies secure context");

test(() => {
  assert_equals(location.protocol, "https:");
}, "Use of .https file name flag implies HTTPS scheme");

done();