https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4becbdbe3b5408b654c0b3a3803e7cbc818eacfd authored by Asami Doi on 30 October 2018, 09:19:07 UTC
ServiceWorker: Add the WPT tests to catch an error when fetch a script.
Tip revision: 4becbdb
idlharness.worker.js
importScripts("/resources/testharness.js");
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");

// https://drafts.css-houdini.org/worklets/

promise_test(async () => {
  const idl = await fetch('/interfaces/worklets.idl').then(r => r.text());

  const idl_array = new IdlArray();
  idl_array.add_idls(idl);
  idl_array.test();
}, 'worklets interfaces');
done();
back to top