Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.https.html

Issue 2933913002: Upstream service worker prototype test to WPT
Patch Set: Migrate test for immutable prototype Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Service Worker: Interfaces</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="/resources/WebIDLParser.js"></script>
6 <script src="/resources/idlharness.js"></script>
7 <script src="resources/interfaces-idls.js"></script>
8 <script src="resources/test-helpers.sub.js"></script>
9 <script>
10 'use strict';
11
12 var idlArray = new IdlArray();
13 idlArray.add_untested_idls(idls.untested);
14 idlArray.add_idls(idls.tested);
15 idlArray.add_objects({
16 ServiceWorkerContainer: ['navigator.serviceWorker']
17 });
18
19 promise_test(function(t) {
20 var scope = 'resources/scope/interfaces-and-attributes';
21
22 return service_worker_unregister_and_register(
23 t, 'resources/empty-worker.js', scope)
24 .then(function(registration) {
25 t.add_cleanup(function() {
26 registration.unregister();
27 });
28
29 window.registrationInstance = registration;
30 idlArray.add_objects({
31 ServiceWorkerRegistration: ['window.registrationInstance'],
32 ServiceWorker: ['window.registrationInstance.installing']
33 });
34 idlArray.test();
35 });
36 }, 'test setup (worker registration)');
37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698