1 if (self
.importScripts
) {
2 importScripts('helpers.js');
4 if (get_current_scope() == 'ServiceWorker')
5 importScripts('../../serviceworker/resources/worker-testharness.js');
7 importScripts('../../resources/testharness.js');
9 importScripts('../../resources/testharness-helpers.js');
13 assert_own_property(self
, 'Permissions');
14 assert_will_be_idl_attribute(navigator
, 'permissions', 'navigator.permissions exists');
16 assert_inherits(navigator
.permissions
, 'query');
18 assert_own_property(self
, 'PermissionStatus');
19 }, 'Check the Permissions API surface in the ' + get_current_scope() + ' scope.');