mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -9,13 +9,13 @@
|
|||
<script>
|
||||
'use strict';
|
||||
|
||||
function doTest(idls) {
|
||||
function doTest(idl, dom) {
|
||||
var idl_array = new IdlArray();
|
||||
idl_array.add_untested_idls('interface Navigator {};');
|
||||
idl_array.add_untested_idls('interface EventTarget {};');
|
||||
for (let idl of idls) {
|
||||
idl_array.add_idls(idl);
|
||||
}
|
||||
idl_array.add_untested_idls('dictionary PermissionDescriptor {};');
|
||||
idl_array.add_untested_idls(dom, { only: ['Event', 'EventInit'] });
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_objects({
|
||||
Navigator: ['navigator'],
|
||||
Clipboard: ['navigator.clipboard'],
|
||||
|
@ -29,7 +29,11 @@ function fetchText(url) {
|
|||
}
|
||||
|
||||
promise_test(() => {
|
||||
return Promise.all(["/interfaces/clipboard-apis.idl"].map(fetchText))
|
||||
.then(doTest);
|
||||
return Promise.all(
|
||||
[
|
||||
"/interfaces/clipboard-apis.idl",
|
||||
"/interfaces/dom.idl",
|
||||
].map(fetchText))
|
||||
.then(([idl, dom]) => doTest(idl, dom));
|
||||
}, "Test driver");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue