Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: LayoutTests/http/tests/permissions/resources/test-api-surface.js

Issue 760223003: Stub implementation of Permissions API module. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: no copies Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698