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

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: Created 6 years, 1 month 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 a8b9d7b75eda9ccbe36d95f85a84a2a02fad4a0f..846983441ee65d62a5da729df678796c30b25469 100644
--- a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
@@ -2,56 +2,63 @@ importScripts('interfaces.js');
importScripts('worker-testharness.js');
importScripts('/resources/testharness-helpers.js');
-test(function() {
- var EVENT_HANDLER = 'object';
+var EVENT_HANDLER = 'object';
- verifyInterface('ServiceWorkerGlobalScope',
- self,
- {
- scope: 'string',
- clients: 'object',
- close: 'function',
+test(function() {
+ verify_interface('ServiceWorkerGlobalScope',
+ self,
+ {
+ scope: 'string',
+ clients: 'object',
+ close: 'function',
- onactivate: EVENT_HANDLER,
- onfetch: EVENT_HANDLER,
- oninstall: EVENT_HANDLER,
- onmessage: EVENT_HANDLER
- });
+ onactivate: EVENT_HANDLER,
+ onfetch: EVENT_HANDLER,
+ oninstall: EVENT_HANDLER,
+ onmessage: EVENT_HANDLER
+ });
+ }, 'ServiceWorkerGlobalScope');
- verifyInterface('ServiceWorkerClients',
- self.clients,
- {
- getAll: 'function'
- });
+test(function() {
+ verify_interface('ServiceWorkerClients',
+ self.clients,
+ {
+ getAll: 'function'
+ });
+ }, 'ServiceWorkerClients');
- verifyInterface('ServiceWorkerClient');
- // FIXME: Get an instance and test it, or ensure property exists on prototype.
+test(function() {
+ verify_interface('ServiceWorkerClient');
+ // FIXME: Get an instance and test it, or ensure property exists on
+ // prototype.
+ }, 'ServiceWorkerClient');
- verifyInterface('CacheStorage',
- self.caches,
- {
- match: 'function',
- get: 'function',
- has: 'function',
- create: 'function',
- delete: 'function',
- keys: 'function'
- });
- }, 'Interfaces and attributes in ServiceWorkerGlobalScope');
+test(function() {
+ verify_interface('CacheStorage',
+ self.caches,
+ {
+ match: 'function',
+ get: 'function',
+ has: 'function',
+ create: 'function',
+ delete: 'function',
+ keys: 'function'
+ });
+ }, 'CacheStorage');
promise_test(function(t) {
return create_temporary_cache(t)
.then(function(cache) {
- verifyInterface('Cache',
- cache,
- {
- match: 'function',
- matchAll: 'function',
- add: 'function',
- addAll: 'function',
- put: 'function',
- delete: 'function',
- keys: 'function'
- });
+ verify_interface('Cache',
+ cache,
+ {
+ match: 'function',
+ matchAll: 'function',
+ add: 'function',
+ addAll: 'function',
+ put: 'function',
+ delete: 'function',
+ keys: 'function'
+ });
});
}, 'Cache');

Powered by Google App Engine
This is Rietveld 408576698