Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / permissions / resources / test-api-surface.js
blobb1f66df6f916104c77a5c4efd2c008e9892512aa
1 if (self.importScripts) {
2 importScripts('helpers.js');
4 if (get_current_scope() == 'ServiceWorker')
5 importScripts('../../serviceworker/resources/worker-testharness.js');
6 else
7 importScripts('../../resources/testharness.js');
9 importScripts('../../resources/testharness-helpers.js');
12 test(function() {
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.');
21 done();