Skip to content

Commit b210660

Browse files
inexorabletashMarcos Cáceres
authored andcommitted
Payment Request: include DOM IDLs as untested (#9368)
1 parent 00b3aac commit b210660

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

payment-request/interfaces.https.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
<script src=/resources/idlharness.js></script>
88
<script>
99
promise_test(async () => {
10-
const idlURLs = ["/interfaces/dom.idl", "/interfaces/payment-request.idl"];
10+
const urls = ["/interfaces/dom.idl", "/interfaces/payment-request.idl"];
11+
const [dom, payment_request] = await Promise.all(
12+
urls.map(url => fetch(url).then(r => r.text())));
1113
const idlArray = new IdlArray();
12-
for(const url of idlURLs){
13-
const idlText = await fetch(url).then(r => r.text());
14-
idlArray.add_idls(idlText);
15-
}
14+
idlArray.add_untested_idls(dom);
15+
idlArray.add_idls(payment_request);
16+
1617
// typedef EventHandler from HTML
1718
// https://html.spec.whatwg.org/#eventhandler
1819
idlArray.add_idls(`

0 commit comments

Comments
 (0)