servo/tests/wpt/web-platform-tests/css/css-paint-api/idlharness.html

26 lines
1,003 B
HTML

<!doctype html>
<title>CSS Painting API IDL tests</title>
<link rel="help" href="https://drafts.css-houdini.org/css-paint-api-1/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<script>
"use strict";
promise_test(async () => {
const idl_array = new IdlArray();
const idl = await fetch("/interfaces/css-paint-api.idl").then(r => r.text());
const cssom = await fetch("/interfaces/cssom.idl").then(r => r.text());
const html = await fetch("/interfaces/html.idl").then(r => r.text());
idl_array.add_idls(idl);
idl_array.add_dependency_idls(cssom);
idl_array.add_dependency_idls(html);
idl_array.add_untested_idls(`
[Exposed=Worklet]
interface WorkletGlobalScope {
attribute Console console;
};`);
idl_array.test();
}, "Test IDL implementation of CSS Painting API");
</script>