mirror of
https://github.com/servo/servo.git
synced 2025-09-02 02:58:22 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -19,20 +19,32 @@ interface EventTarget {};
|
|||
</pre>
|
||||
<script>
|
||||
"use strict"
|
||||
var idl_array = new IdlArray();
|
||||
function doTest(idl) {
|
||||
idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_objects({
|
||||
HTMLVideoElement: [document.getElementById("media")],
|
||||
RemotePlayback: [document.getElementById("media").remote]
|
||||
});
|
||||
idl_array.test();
|
||||
}
|
||||
|
||||
promise_test(function() {
|
||||
return fetch("/interfaces/remoteplayback.idl")
|
||||
.then(response => response.text())
|
||||
promise_test(async function() {
|
||||
var idl_array = new IdlArray();
|
||||
function doTest([html, idl]) {
|
||||
idl_array.add_untested_idls('interface Element {};');
|
||||
idl_array.add_untested_idls(html, { only: [
|
||||
'HTMLElement',
|
||||
'HTMLOrSVGElement',
|
||||
'GlobalEventHandlers',
|
||||
'DocumentAndElementEventHandlers',
|
||||
'ElementContentEditable',
|
||||
] });
|
||||
idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_objects({
|
||||
HTMLVideoElement: [document.getElementById("media")],
|
||||
RemotePlayback: [document.getElementById("media").remote]
|
||||
});
|
||||
idl_array.test();
|
||||
}
|
||||
|
||||
return Promise.all(
|
||||
[
|
||||
"/interfaces/html.idl",
|
||||
"/interfaces/remoteplayback.idl",
|
||||
].map(url => fetch(url).then(r => r.text())))
|
||||
.then(doTest);
|
||||
}, "Test driver");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue