idlharness.any.js (483B)
1 // META: script=/resources/WebIDLParser.js 2 // META: script=/resources/idlharness.js 3 // META: timeout=long 4 5 'use strict'; 6 7 idl_test( 8 ['permissions-request'], 9 ['permissions', 'html', 'dom'], 10 async idl_array => { 11 if (self.GLOBAL.isWorker()) { 12 idl_array.add_objects({ WorkerNavigator: ['navigator'] }); 13 } else { 14 idl_array.add_objects({ Navigator: ['navigator'] }); 15 } 16 17 idl_array.add_objects({ 18 Permissions: ['navigator.permissions'], 19 }); 20 } 21 );