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

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: forgot a nit Created 6 years 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..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();

Powered by Google App Engine
This is Rietveld 408576698