OLD | NEW |
(Empty) | |
| 1 // Any copyright is dedicated to the Public Domain. |
| 2 // http://creativecommons.org/publicdomain/zero/1.0/ |
| 3 |
| 4 if (self.importScripts) { |
| 5 importScripts('helpers.js'); |
| 6 |
| 7 if (get_current_scope() == 'ServiceWorker') |
| 8 importScripts('../../serviceworker/resources/worker-testharness.js'); |
| 9 else |
| 10 importScripts('../../resources/testharness.js'); |
| 11 } |
| 12 |
| 13 test(function() { |
| 14 assert_own_property(self, 'Permissions'); |
| 15 assert_own_property(Permissions, 'query'); |
| 16 |
| 17 assert_own_property(self, 'PermissionStatus'); |
| 18 }, 'Check the Permissions API surface in the ' + get_current_scope() + ' scope.'
); |
| 19 |
| 20 done(); |
OLD | NEW |