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

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

Issue 435453002: [ServiceWorker] Update formatting for tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't forget to update callsites. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
index a02559bf7eab0be47829c724b97ed09b48a4393a..5953cc8977a43c35b2e076776dcf88cd2e65c5d0 100644
--- a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
@@ -4,46 +4,46 @@ importScripts('worker-test-harness.js');
test(function() {
var EVENT_HANDLER = 'object';
- verifyInterface('ServiceWorkerGlobalScope',
- self,
- {
- scope: 'string',
- clients: 'object',
+ verify_interface('ServiceWorkerGlobalScope',
+ self,
+ {
+ scope: 'string',
+ clients: 'object',
- onactivate: EVENT_HANDLER,
- onfetch: EVENT_HANDLER,
- oninstall: EVENT_HANDLER,
- onmessage: EVENT_HANDLER
- });
+ onactivate: EVENT_HANDLER,
+ onfetch: EVENT_HANDLER,
+ oninstall: EVENT_HANDLER,
+ onmessage: EVENT_HANDLER
+ });
- verifyInterface('ServiceWorkerClients',
- self.clients,
- {
- getServiced: 'function'
- });
+ verify_interface('ServiceWorkerClients',
+ self.clients,
+ {
+ getServiced: 'function'
+ });
- verifyInterface('Client');
+ verify_interface('Client');
// FIXME: Get an instance and test it, or ensure property exists on prototype.
- verifyInterface('CacheStorage',
- self.caches,
- {
- match: 'function',
- get: 'function',
- has: 'function',
- create: 'function',
- delete: 'function',
- keys: 'function'
- });
+ verify_interface('CacheStorage',
+ self.caches,
+ {
+ match: 'function',
+ get: 'function',
+ has: 'function',
+ create: 'function',
+ delete: 'function',
+ keys: 'function'
+ });
- verifyInterface('Cache',
- new Cache(),
- {
- match: 'function',
- matchAll: 'function',
- add: 'function',
- put: 'function', delete: 'function',
- keys: 'function',
- batch: 'function'
- });
+ verify_interface('Cache',
+ new Cache(),
+ {
+ match: 'function',
+ matchAll: 'function',
+ add: 'function',
+ put: 'function', delete: 'function',
+ keys: 'function',
+ batch: 'function'
+ });
}, 'Interfaces and attributes in ServiceWorkerGlobalScope');

Powered by Google App Engine
This is Rietveld 408576698