mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision bb1f35100ad0aedeeb6897dd640b360f80498027
This commit is contained in:
parent
3a3a7cdc22
commit
210ff0c02a
35 changed files with 1957 additions and 43 deletions
|
@ -7,12 +7,13 @@
|
|||
<script src=/resources/idlharness.js></script>
|
||||
<script>
|
||||
promise_test(async () => {
|
||||
const idlURLs = ["/interfaces/dom.idl", "/interfaces/payment-request.idl"];
|
||||
const urls = ["/interfaces/dom.idl", "/interfaces/payment-request.idl"];
|
||||
const [dom, payment_request] = await Promise.all(
|
||||
urls.map(url => fetch(url).then(r => r.text())));
|
||||
const idlArray = new IdlArray();
|
||||
for(const url of idlURLs){
|
||||
const idlText = await fetch(url).then(r => r.text());
|
||||
idlArray.add_idls(idlText);
|
||||
}
|
||||
idlArray.add_untested_idls(dom);
|
||||
idlArray.add_idls(payment_request);
|
||||
|
||||
// typedef EventHandler from HTML
|
||||
// https://html.spec.whatwg.org/#eventhandler
|
||||
idlArray.add_idls(`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue