Revision 70e133613ba68282617c33db22e17b05a1f93430 authored by Anne van Kesteren on 15 August 2018, 14:25:47 UTC, committed by Anne van Kesteren on 15 August 2018, 14:25:47 UTC
1 parent 3878b81
Raw File
interfaces.tentative.https.any.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

'use strict';

promise_test(async t => {
  const response = await fetch('interfaces.idl');
  const idls = await response.text();

  const idl_array = new IdlArray();

  idl_array.add_untested_idls('[Exposed=Window] interface Navigator {};');
  idl_array.add_untested_idls('[Exposed=Worker] interface WorkerNavigator {};');

  idl_array.add_idls(idls);

  let lock;
  await navigator.locks.request('name', l => { lock = l; });

  idl_array.add_objects({
    LockManager: [navigator.locks],
    Lock: [lock],
  });

  idl_array.test();
});
back to top