Files
tubestation/testing/web-platform/tests/background-fetch/interfaces.html
Benjamin C. Wiley Sittler 9aad274dd9 Bug 1443718 [wpt PR 9892] - Consolidate all IDL files into interfaces/, a=testonly
Automatic update from web-platform-testsMerge pull request #9892 from w3c/idl-in-interfaces

Consolidate all IDL files into interfaces/

wpt-commits: 4a9668d4ff65e156d833f1ebc48b6ee7e6d46779
wpt-pr: 9892
wpt-commits: 4a9668d4ff65e156d833f1ebc48b6ee7e6d46779
wpt-pr: 9892
2018-03-31 22:32:37 +01:00

27 lines
893 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>Background Fetch API IDL tests</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<h1>idlharness test</h1>
<p>This test validates the WebIDL included in the Background Fetch API (Documents).</p>
<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();
});
}, 'Exposed interfaces in a Document.');
</script>