mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +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
|
@ -12,15 +12,17 @@
|
|||
<script>
|
||||
'use strict';
|
||||
|
||||
promise_test(function() {
|
||||
return fetch('/interfaces/background-fetch.idl')
|
||||
.then(response => response.text())
|
||||
.then(idls => {
|
||||
var idlArray = new IdlArray();
|
||||
idlArray.add_untested_idls('interface ServiceWorkerRegistration {};');
|
||||
idlArray.add_untested_idls('[Exposed=ServiceWorker] interface ServiceWorkerGlobalScope {};');
|
||||
idlArray.add_idls(idls);
|
||||
idlArray.test();
|
||||
});
|
||||
promise_test(async function () {
|
||||
const idls = await fetch('/interfaces/background-fetch.idl').then(r => r.text());
|
||||
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
||||
|
||||
var idlArray = new IdlArray();
|
||||
idlArray.add_untested_idls('interface ServiceWorkerRegistration {};');
|
||||
idlArray.add_untested_idls('[Exposed=ServiceWorker] interface ServiceWorkerGlobalScope {};');
|
||||
idlArray.add_untested_idls('interface ExtendableEvent{};');
|
||||
idlArray.add_untested_idls('dictionary ExtendableEventInit{};');
|
||||
idlArray.add_untested_idls(dom, { only: ['EventTarget'] });
|
||||
idlArray.add_idls(idls);
|
||||
idlArray.test();
|
||||
}, 'Exposed interfaces in a Document.');
|
||||
</script>
|
||||
|
|
|
@ -3,16 +3,18 @@
|
|||
importScripts('/resources/testharness.js');
|
||||
importScripts('/resources/WebIDLParser.js', '/resources/idlharness.js');
|
||||
|
||||
promise_test(function() {
|
||||
return fetch('/interfaces/background-fetch.idl')
|
||||
.then(response => response.text())
|
||||
.then(idls => {
|
||||
var idlArray = new IdlArray();
|
||||
idlArray.add_untested_idls('interface ServiceWorkerRegistration {};');
|
||||
idlArray.add_untested_idls('[Exposed=ServiceWorker] interface ServiceWorkerGlobalScope {};');
|
||||
idlArray.add_idls(idls);
|
||||
idlArray.test();
|
||||
});
|
||||
promise_test(async function() {
|
||||
const idls = await fetch('/interfaces/background-fetch.idl').then(r => r.text());
|
||||
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
||||
|
||||
var idlArray = new IdlArray();
|
||||
idlArray.add_untested_idls('interface ServiceWorkerRegistration {};');
|
||||
idlArray.add_untested_idls('[SecureContext, Exposed = (Window, Worker)] interface ServiceWorkerGlobalScope {};');
|
||||
idlArray.add_untested_idls('interface ExtendableEvent{};');
|
||||
idlArray.add_untested_idls('dictionary ExtendableEventInit{};');
|
||||
idlArray.add_untested_idls(dom, { only: ['EventTarget'] });
|
||||
idlArray.add_idls(idls);
|
||||
idlArray.test();
|
||||
}, 'Exposed interfaces in a Service Worker.');
|
||||
|
||||
done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue