Chromium Code Reviews| 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) { |
|
Peter Beverloo
2014/12/01 13:26:07
Would it make sense to include this block (lines 1
mlamouri (slow - plz ping)
2014/12/01 13:33:17
As discussed f2f, it's unlikely that we will have
|
| + 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(); |