summaryrefslogtreecommitdiffstats
path: root/toolkit/components/webextensions/schemas/test.json
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2019-03-13 07:49:07 +0100
committerGitHub <noreply@github.com>2019-03-13 07:49:07 +0100
commitbf0413359245579e9509146d42cd5547e35da695 (patch)
tree8218d4f60d9eccacbf42df8cb88094a082d401b4 /toolkit/components/webextensions/schemas/test.json
parent51b821b3fdc5a7eab2369cb6a6680598a6264b08 (diff)
parent709bc24e9110eba12f94cfcb8db00a8338ac4098 (diff)
downloadUXP-bf0413359245579e9509146d42cd5547e35da695.tar
UXP-bf0413359245579e9509146d42cd5547e35da695.tar.gz
UXP-bf0413359245579e9509146d42cd5547e35da695.tar.lz
UXP-bf0413359245579e9509146d42cd5547e35da695.tar.xz
UXP-bf0413359245579e9509146d42cd5547e35da695.zip
Merge pull request #998 from MoonchildProductions/master
Merge master into Sync-weave
Diffstat (limited to 'toolkit/components/webextensions/schemas/test.json')
-rw-r--r--toolkit/components/webextensions/schemas/test.json215
1 files changed, 0 insertions, 215 deletions
diff --git a/toolkit/components/webextensions/schemas/test.json b/toolkit/components/webextensions/schemas/test.json
deleted file mode 100644
index 25a62a96b..000000000
--- a/toolkit/components/webextensions/schemas/test.json
+++ /dev/null
@@ -1,215 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-[
- {
- "namespace": "test",
- "allowedContexts": ["content"],
- "defaultContexts": ["content"],
- "description": "none",
- "functions": [
- {
- "name": "notifyFail",
- "type": "function",
- "description": "Notifies the browser process that test code running in the extension failed. This is only used for internal unit testing.",
- "parameters": [
- {"type": "string", "name": "message"}
- ]
- },
- {
- "name": "notifyPass",
- "type": "function",
- "description": "Notifies the browser process that test code running in the extension passed. This is only used for internal unit testing.",
- "parameters": [
- {"type": "string", "name": "message", "optional": true}
- ]
- },
- {
- "name": "log",
- "type": "function",
- "description": "Logs a message during internal unit testing.",
- "parameters": [
- {"type": "string", "name": "message"}
- ]
- },
- {
- "name": "sendMessage",
- "type": "function",
- "description": "Sends a string message to the browser process, generating a Notification that C++ test code can wait for.",
- "allowAmbiguousOptionalArguments": true,
- "parameters": [
- {"type": "any", "name": "arg1", "optional": true},
- {"type": "any", "name": "arg2", "optional": true}
- ]
- },
- {
- "name": "fail",
- "type": "function",
- "parameters": [
- {"type": "any", "name": "message", "optional": true}
- ]
- },
- {
- "name": "succeed",
- "type": "function",
- "parameters": [
- {"type": "any", "name": "message", "optional": true}
- ]
- },
- {
- "name": "assertTrue",
- "type": "function",
- "allowAmbiguousOptionalArguments": true,
- "parameters": [
- {"name": "test", "type": "any", "optional": true},
- {"type": "string", "name": "message", "optional": true}
- ]
- },
- {
- "name": "assertFalse",
- "type": "function",
- "allowAmbiguousOptionalArguments": true,
- "parameters": [
- {"name": "test", "type": "any", "optional": true},
- {"type": "string", "name": "message", "optional": true}
- ]
- },
- {
- "name": "assertBool",
- "type": "function",
- "unsupported": true,
- "parameters": [
- {
- "name": "test",
- "choices": [
- {"type": "string"},
- {"type": "boolean"}
- ]
- },
- {"type": "boolean", "name": "expected"},
- {"type": "string", "name": "message", "optional": true}
- ]
- },
- {
- "name": "checkDeepEq",
- "type": "function",
- "unsupported": true,
- "allowAmbiguousOptionalArguments": true,
- "parameters": [
- {"type": "any", "name": "expected"},
- {"type": "any", "name": "actual"}
- ]
- },
- {
- "name": "assertEq",
- "type": "function",
- "allowAmbiguousOptionalArguments": true,
- "parameters": [
- {"type": "any", "name": "expected", "optional": true},
- {"type": "any", "name": "actual", "optional": true},
- {"type": "string", "name": "message", "optional": true}
- ]
- },
- {
- "name": "assertNoLastError",
- "type": "function",
- "unsupported": true,
- "parameters": []
- },
- {
- "name": "assertLastError",
- "type": "function",
- "unsupported": true,
- "parameters": [
- {"type": "string", "name": "expectedError"}
- ]
- },
- {
- "name": "assertRejects",
- "type": "function",
- "async": true,
- "parameters": [
- {
- "name": "promise",
- "$ref": "Promise"
- },
- {
- "name": "expectedError",
- "$ref": "ExpectedError",
- "optional": true
- },
- {
- "name": "message",
- "type": "string",
- "optional": true
- }
- ]
- },
- {
- "name": "assertThrows",
- "type": "function",
- "parameters": [
- {
- "name": "func",
- "type": "function"
- },
- {
- "name": "expectedError",
- "$ref": "ExpectedError",
- "optional": true
- },
- {
- "name": "message",
- "type": "string",
- "optional": true
- }
- ]
- }
- ],
- "types": [
- {
- "id": "ExpectedError",
- "choices": [
- {"type": "string"},
- {"type": "object", "isInstanceOf": "RegExp", "additionalProperties": true},
- {"type": "function"}
- ]
- },
- {
- "id": "Promise",
- "choices": [
- {
- "type": "object",
- "properties": {
- "then": {"type": "function"}
- },
- "additionalProperties": true
- },
- {
- "type": "object",
- "isInstanceOf": "Promise",
- "additionalProperties": true
- }
- ]
- }
- ],
- "events": [
- {
- "name": "onMessage",
- "type": "function",
- "description": "Used to test sending messages to extensions.",
- "parameters": [
- {
- "type": "string",
- "name": "message"
- },
- {
- "type": "any",
- "name": "argument"
- }
- ]
- }
- ]
- }
-]