mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Update web-platform-tests to revision 50d6ee076e94273080d9f3b69be0bf4eeae156d3
This commit is contained in:
parent
3b9055510a
commit
280c87822d
331 changed files with 4209 additions and 866 deletions
|
@ -1,29 +0,0 @@
|
|||
<title>Input Event IDL tests</title>
|
||||
<link rel="help" href="https://w3c.github.io/input-events/#h-interface-inputevent"/>
|
||||
<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";
|
||||
|
||||
function doTest([input_events]) {
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_untested_idls('interface InputEvent {};');
|
||||
idl_array.add_untested_idls('dictionary InputEventInit {};');
|
||||
idl_array.add_idls(input_events);
|
||||
idl_array.add_objects({
|
||||
InputEvent: ['new InputEvent("foo")'],
|
||||
});
|
||||
idl_array.test();
|
||||
}
|
||||
|
||||
function fetchText(url) {
|
||||
return fetch(url).then((response) => response.text());
|
||||
}
|
||||
|
||||
promise_test(() => {
|
||||
return Promise.all(["/interfaces/input-events.idl"].map(fetchText))
|
||||
.then(doTest);
|
||||
}, "Test IDL implementation of Input Events");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
'use strict';
|
||||
|
||||
idl_test(
|
||||
['input-events'],
|
||||
['uievents', 'dom'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
InputEvent: ['new InputEvent("foo")'],
|
||||
});
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue