mirror of
https://github.com/servo/servo.git
synced 2025-06-30 12:03:38 +01:00
24 lines
937 B
HTML
24 lines
937 B
HTML
<!doctype html>
|
|
<title>Input Device Capabilities IDL tests</title>
|
|
<link rel="help" href="https://wicg.github.io/InputDeviceCapabilities/">
|
|
<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 (await fetch("/interfaces/InputDeviceCapabilities.idl")).text();
|
|
const uievents = await (await fetch("/interfaces/uievents.idl")).text();
|
|
const dom = await (await fetch("/interfaces/dom.idl")).text();
|
|
idl_array.add_idls(idl);
|
|
idl_array.add_dependency_idls(uievents);
|
|
idl_array.add_dependency_idls(dom);
|
|
idl_array.add_objects({
|
|
InputDeviceCapabilities: ["new InputDeviceCapabilities"],
|
|
});
|
|
idl_array.test();
|
|
}, "Test driver");
|
|
</script>
|