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

Unified Diff: chrome/common/extensions/api/test.json

Issue 11571014: Lazy load chrome.* APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apitest.js Created 7 years, 10 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: 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": [

Powered by Google App Engine
This is Rietveld 408576698