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..7078cff74787187419dc543c0a8dcc36a29a0a46 |
--- /dev/null |
+++ b/LayoutTests/http/tests/permissions/resources/test-api-surface.js |
@@ -0,0 +1,20 @@ |
+// Any copyright is dedicated to the Public Domain. |
+// http://creativecommons.org/publicdomain/zero/1.0/ |
+ |
+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(); |