Index: chrome/common/extensions/api/test.json |
diff --git a/chrome/common/extensions/api/test.json b/chrome/common/extensions/api/test.json |
index 17ad5313930e5105debadc44dd66054990d0ebee..dc1b8a10652bcc8a78793cc013a7b72b0cd661dd 100644 |
--- a/chrome/common/extensions/api/test.json |
+++ b/chrome/common/extensions/api/test.json |
@@ -104,6 +104,158 @@ |
] |
} |
] |
+ }, |
+ { |
+ "name": "callbackAdded", |
+ "type": "function", |
+ "parameters": [] |
+ }, |
+ { |
+ "name": "runNextTest", |
+ "type": "function", |
+ "parameters": [] |
+ }, |
+ { |
+ "name": "fail", |
+ "type": "function", |
+ "parameters": [ |
+ {"type": "string", "name": "message", "optional": true} |
+ ] |
+ }, |
+ { |
+ "name": "succeed", |
+ "type": "function", |
+ "parameters": [] |
+ }, |
+ { |
+ "name": "assertTrue", |
+ "type": "function", |
+ "parameters": [ |
+ { |
+ "name": "test", |
+ "choices": [ |
+ {"type": "string"}, |
+ {"type": "boolean"} |
+ ] |
+ }, |
+ {"type": "string", "name": "message", "optional": true} |
+ ] |
+ }, |
+ { |
+ "name": "assertFalse", |
+ "type": "function", |
+ "parameters": [ |
+ { |
+ "name": "test", |
+ "choices": [ |
+ {"type": "string"}, |
+ {"type": "boolean"} |
+ ] |
+ }, |
+ {"type": "string", "name": "message", "optional": true} |
+ ] |
+ }, |
+ { |
+ "name": "assertBool", |
+ "type": "function", |
+ "parameters": [ |
+ { |
+ "name": "test", |
+ "choices": [ |
+ {"type": "string"}, |
+ {"type": "boolean"} |
+ ] |
+ }, |
+ {"type": "boolean", "name": "expected"}, |
+ {"type": "string", "name": "message", "optional": true} |
+ ] |
+ }, |
+ { |
+ "name": "checkDeepEq", |
+ "type": "function", |
+ "parameters": [ |
+ {"type": "any", "name": "expected"}, |
+ {"type": "any", "name": "actual"} |
+ ] |
+ }, |
+ { |
+ "name": "assertEq", |
+ "type": "function", |
+ "parameters": [ |
+ {"type": "any", "name": "expected"}, |
+ {"type": "any", "name": "actual"}, |
+ {"type": "string", "name": "message", "optional": true} |
+ ] |
+ }, |
+ { |
+ "name": "assertNoLastError", |
+ "type": "function", |
+ "parameters": [] |
+ }, |
+ { |
+ "name": "assertLastError", |
+ "type": "function", |
+ "parameters": [] |
+ }, |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "parameters": [ |
+ {"type": "function", "name": "func"}, |
+ {"type": "object", "name": "expectedError", "optional": true} |
+ ] |
+ }, |
+ { |
+ "name": "listenOnce", |
+ "type": "function", |
+ "parameters": [ |
+ {"$ref": "events.Event", "name": "event"}, |
+ {"type": "function", "name": "func"} |
+ ] |
+ }, |
+ { |
+ "name": "listenForever", |
+ "type": "function", |
+ "parameters": [ |
+ {"$ref": "events.Event", "name": "event"}, |
+ {"type": "function", "name": "func"} |
+ ] |
+ }, |
+ { |
+ "name": "callbackPass", |
+ "type": "function", |
+ "parameters": [ |
+ {"type": "function", "name": "func"} |
+ ] |
+ }, |
+ { |
+ "name": "callbackFail", |
+ "type": "function", |
+ "parameters": [ |
+ {"type": "object", "name": "expectedError"}, |
+ {"type": "function", "name": "func"} |
+ ] |
+ }, |
+ { |
+ "name": "runTests", |
+ "type": "function", |
+ "parameters": [ |
+ { |
+ "type": "array", |
+ "items": {"type": "function"} |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "getApiDefinitions", |
+ "type": "function", |
+ "parameters": [ |
+ { |
+ "type": "array", |
+ "optional": true, |
+ "items": {"type": "string"} |
+ } |
+ ] |
} |
], |
"events": [ |