OLD | NEW |
(Empty) | |
| 1 if (self.importScripts) { |
| 2 importScripts('helpers.js'); |
| 3 |
| 4 if (get_current_scope() == 'ServiceWorker') |
| 5 importScripts('../../serviceworker/resources/worker-testharness.js'); |
| 6 else |
| 7 importScripts('../../resources/testharness.js'); |
| 8 } |
| 9 |
| 10 test(function() { |
| 11 assert_own_property(self, 'Permissions'); |
| 12 assert_own_property(Permissions, 'query'); |
| 13 |
| 14 assert_own_property(self, 'PermissionStatus'); |
| 15 }, 'Check the Permissions API surface in the ' + get_current_scope() + ' scope.'
); |
| 16 |
| 17 done(); |
OLD | NEW |