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

Side by Side Diff: LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js

Issue 1057893002: Revert of ServiceWorker: Remove Clients.getAll() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
1 importScripts('interfaces.js'); 1 importScripts('interfaces.js');
2 importScripts('worker-testharness.js'); 2 importScripts('worker-testharness.js');
3 importScripts('/resources/testharness-helpers.js'); 3 importScripts('/resources/testharness-helpers.js');
4 4
5 var EVENT_HANDLER = 'object'; 5 var EVENT_HANDLER = 'object';
6 6
7 test(function() { 7 test(function() {
8 verify_interface('ServiceWorkerGlobalScope', 8 verify_interface('ServiceWorkerGlobalScope',
9 self, 9 self,
10 { 10 {
11 clients: 'object', 11 clients: 'object',
12 close: 'function', 12 close: 'function',
13 registration: 'object', 13 registration: 'object',
14 skipWaiting: 'function', 14 skipWaiting: 'function',
15 15
16 onactivate: EVENT_HANDLER, 16 onactivate: EVENT_HANDLER,
17 onfetch: EVENT_HANDLER, 17 onfetch: EVENT_HANDLER,
18 oninstall: EVENT_HANDLER, 18 oninstall: EVENT_HANDLER,
19 onmessage: EVENT_HANDLER 19 onmessage: EVENT_HANDLER
20 }); 20 });
21 }, 'ServiceWorkerGlobalScope'); 21 }, 'ServiceWorkerGlobalScope');
22 22
23 test(function() { 23 test(function() {
24 verify_interface('Clients', 24 verify_interface('Clients',
25 self.clients, 25 self.clients,
26 { 26 {
27 claim: 'function', 27 claim: 'function',
28 matchAll: 'function' 28 getAll: 'function'
29 }); 29 });
30 }, 'Clients'); 30 }, 'Clients');
31 31
32 test(function() { 32 test(function() {
33 verify_interface('Client'); 33 verify_interface('Client');
34 // FIXME: Get an instance and test it, or ensure property exists on 34 // FIXME: Get an instance and test it, or ensure property exists on
35 // prototype. 35 // prototype.
36 }, 'Client'); 36 }, 'Client');
37 37
38 test(function() { 38 test(function() {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 test(function() { 73 test(function() {
74 assert_equals(new ExtendableEvent('ExtendableEvent').type, 'ExtendableEvent' ); 74 assert_equals(new ExtendableEvent('ExtendableEvent').type, 'ExtendableEvent' );
75 assert_equals(new InstallEvent('InstallEvent').type, 'InstallEvent'); 75 assert_equals(new InstallEvent('InstallEvent').type, 'InstallEvent');
76 76
77 assert_equals(new InstallEvent('InstallEvent').cancelable, false); 77 assert_equals(new InstallEvent('InstallEvent').cancelable, false);
78 assert_equals(new InstallEvent('InstallEvent').bubbles, false); 78 assert_equals(new InstallEvent('InstallEvent').bubbles, false);
79 assert_equals(new InstallEvent('InstallEvent', { cancelable : true }).cancel able, true); 79 assert_equals(new InstallEvent('InstallEvent', { cancelable : true }).cancel able, true);
80 assert_equals(new InstallEvent('InstallEvent', { bubbles : true }).bubbles, true); 80 assert_equals(new InstallEvent('InstallEvent', { bubbles : true }).bubbles, true);
81 }, 'Event constructors'); 81 }, 'Event constructors');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698