Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee

This commit is contained in:
WPT Sync Bot 2018-04-23 21:13:37 -04:00
parent c5f7c9ccf3
commit e891345f26
1328 changed files with 36632 additions and 20588 deletions

View file

@ -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>