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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/interfaces.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.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/interfaces.js b/LayoutTests/http/tests/serviceworker/resources/interfaces.js
index 9db350fd8372eafe54d8b068c8b3c8456b9df27e..eb00df65ff3b7b709a2c603cd7be21f765ec5f40 100644
--- a/LayoutTests/http/tests/serviceworker/resources/interfaces.js
+++ b/LayoutTests/http/tests/serviceworker/resources/interfaces.js
@@ -1,15 +1,15 @@
-function verifyInterface(name, instance, attributes) {
- assert_true(name in self,
- name + ' should be an defined type');
- if (instance) {
- assert_true(instance instanceof self[name],
- instance + ' should be an instance of ' + name);
- Object.keys(attributes || {}).forEach(function(attribute) {
- var type = attributes[attribute];
- assert_true(attribute in instance,
- attribute + ' should be an attribute of ' + name);
- assert_equals(typeof instance[attribute], type,
- attribute + ' should be of type ' + type);
- });
- }
+function verify_interface(name, instance, attributes) {
+ assert_true(name in self,
+ name + ' should be an defined type');
+ if (instance) {
+ assert_true(instance instanceof self[name],
+ instance + ' should be an instance of ' + name);
+ Object.keys(attributes || {}).forEach(function(attribute) {
+ var type = attributes[attribute];
+ assert_true(attribute in instance,
+ attribute + ' should be an attribute of ' + name);
+ assert_equals(typeof instance[attribute], type,
+ attribute + ' should be of type ' + type);
+ });
+ }
}

Powered by Google App Engine
This is Rietveld 408576698