tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

idlharness.https.any.js (568B)


      1 // META: script=/resources/WebIDLParser.js
      2 // META: script=/resources/idlharness.js
      3 
      4 'use strict';
      5 
      6 // https://wicg.github.io/webhid/
      7 
      8 idl_test(
      9  ['webhid'],
     10  ['html', 'dom'],
     11  idl_array => {
     12    if (self.GLOBAL.isWindow()) {
     13      idl_array.add_objects({ Navigator: ['navigator'] });
     14    } else if (self.GLOBAL.isWorker()) {
     15      idl_array.add_objects({ WorkerNavigator: ['navigator'] });
     16    }
     17 
     18    idl_array.add_objects({
     19      HID: ['navigator.hid'],
     20      // TODO: HIDConnectionEvent
     21      // TODO: HIDInputReportEvent
     22      // TODO: HIDDevice
     23    });
     24  }
     25 );