Revision 9454b8e581454d3bf0dabb368f4cf90c8e3dcc6c authored by Geoffrey Sneddon on 27 August 2018, 16:01:41 UTC, committed by James Graham on 14 November 2018, 11:37:48 UTC
1 parent beb9940
Raw File
idlharness.any.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

'use strict';

// https://wicg.github.io/netinfo/

idl_test(
  ['netinfo'],
  ['html', 'dom'],
  idl_array => {
    idl_array.add_objects({ NetworkInformation: ['navigator.connection'] });
    if (self.isWorker) {
      idl_array.add_objects({ WorkerNavigator: ['navigator'] });
    } else {
      idl_array.add_objects({ Navigator: ['navigator'] });
    }
  }
);
back to top