| Index: LayoutTests/http/tests/permissions/resources/test-api-surface.js
|
| diff --git a/LayoutTests/http/tests/permissions/resources/test-api-surface.js b/LayoutTests/http/tests/permissions/resources/test-api-surface.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cb777296c6daf8feb0958c27cb98f314e3413765
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/permissions/resources/test-api-surface.js
|
| @@ -0,0 +1,17 @@
|
| +if (self.importScripts) {
|
| + importScripts('helpers.js');
|
| +
|
| + if (get_current_scope() == 'ServiceWorker')
|
| + importScripts('../../serviceworker/resources/worker-testharness.js');
|
| + else
|
| + importScripts('../../resources/testharness.js');
|
| +}
|
| +
|
| +test(function() {
|
| + assert_own_property(self, 'Permissions');
|
| + assert_own_property(Permissions, 'query');
|
| +
|
| + assert_own_property(self, 'PermissionStatus');
|
| +}, 'Check the Permissions API surface in the ' + get_current_scope() + ' scope.');
|
| +
|
| +done();
|
|
|