Skip to content

Commit

Permalink
Payment Request: include DOM IDLs as untested (#9368)
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash authored and Marcos Cáceres committed Feb 5, 2018
1 parent 00b3aac commit b210660
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions payment-request/interfaces.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
Expand Down

0 comments on commit b210660

Please sign in to comment.