summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/web-locks/secure-context.https.any.js
blob: 29ae7aea475f2db169718507431adb4c6ff78eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// META: title=Web Locks API: API requires secure context
// META: global=window,dedicatedworker,sharedworker,serviceworker

'use strict';

test(t => {
  assert_true(self.isSecureContext);
  assert_idl_attribute(navigator, 'locks',
                       'navigator.locks exists in secure context');
  assert_true('LockManager' in self,
              'LockManager is present in secure contexts');
  assert_true('Lock' in self,
              'Lock interface is present in secure contexts');
}, 'API presence in secure contexts');