idlharness.any.js (480B)
1 // META: script=/resources/WebIDLParser.js 2 // META: script=/resources/idlharness.js 3 // META: timeout=long 4 5 'use strict'; 6 7 // https://wicg.github.io/netinfo/ 8 9 idl_test( 10 ['netinfo'], 11 ['html', 'dom'], 12 idl_array => { 13 idl_array.add_objects({ NetworkInformation: ['navigator.connection'] }); 14 if (self.GLOBAL.isWorker()) { 15 idl_array.add_objects({ WorkerNavigator: ['navigator'] }); 16 } else { 17 idl_array.add_objects({ Navigator: ['navigator'] }); 18 } 19 } 20 );