mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +01:00
20 lines
565 B
JavaScript
20 lines
565 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
"use strict";
|
|
|
|
if (self.importScripts) {
|
|
importScripts("/resources/testharness.js");
|
|
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");
|
|
}
|
|
|
|
// https://w3c.github.io/payment-handler/
|
|
|
|
promise_test(async() => {
|
|
const text = await fetch("/interfaces/payment-handler.idl")
|
|
.then(response => response.text());
|
|
const idlArray = new IdlArray();
|
|
idlArray.add_idls(text);
|
|
idlArray.test();
|
|
done();
|
|
}, "Payment handler interfaces.");
|