| Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.https.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.https.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.https.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7097df0616061e4872cf23ab04ccf97bf8f9f079
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.https.html
|
| @@ -0,0 +1,37 @@
|
| +<!DOCTYPE html>
|
| +<title>Service Worker: Interfaces</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>
|
| +<script src="resources/interfaces-idls.js"></script>
|
| +<script src="resources/test-helpers.sub.js"></script>
|
| +<script>
|
| +'use strict';
|
| +
|
| +var idlArray = new IdlArray();
|
| +idlArray.add_untested_idls(idls.untested);
|
| +idlArray.add_idls(idls.tested);
|
| +idlArray.add_objects({
|
| + ServiceWorkerContainer: ['navigator.serviceWorker']
|
| + });
|
| +
|
| +promise_test(function(t) {
|
| + var scope = 'resources/scope/interfaces-and-attributes';
|
| +
|
| + return service_worker_unregister_and_register(
|
| + t, 'resources/empty-worker.js', scope)
|
| + .then(function(registration) {
|
| + t.add_cleanup(function() {
|
| + registration.unregister();
|
| + });
|
| +
|
| + window.registrationInstance = registration;
|
| + idlArray.add_objects({
|
| + ServiceWorkerRegistration: ['window.registrationInstance'],
|
| + ServiceWorker: ['window.registrationInstance.installing']
|
| + });
|
| + idlArray.test();
|
| + });
|
| + }, 'test setup (worker registration)');
|
| +</script>
|
|
|