summaryrefslogtreecommitdiffstats
path: root/mobile/android/geckoview/src/androidTest/assets/web_extensions/test-support/test-schema.json
blob: 94e4b3bd9b009ede2b60c6f2f21b0129d4768462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
[
  {
    "namespace": "test",
    "description": "Additional APIs for test support in GeckoView.",
    "functions": [
      {
        "name": "setPrefs",
        "type": "function",
        "async": true,
        "description": "Set prefs and return a set of saved prefs",
        "parameters": [
          {
            "name": "oldPrefs",
            "type": "object",
            "properties": {},
            "additionalProperties": { "type": "any" }
          },
          {
            "name": "newPrefs",
            "type": "object",
            "properties": {},
            "additionalProperties": { "type": "any" }
          }
        ]
      },
      {
        "name": "restorePrefs",
        "type": "function",
        "async": true,
        "description": "Restore prefs to old value",
        "parameters": [
          {
            "type": "any",
            "name": "oldPrefs"
          }
        ]
      },
      {
        "name": "getPrefs",
        "type": "function",
        "async": true,
        "description": "Get pref values.",
        "parameters": [
          {
            "name": "prefs",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      },
      {
        "name": "getLinkColor",
        "type": "function",
        "async": true,
        "description": "Get resolved color for the link resolved by a given selector.",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          },
          {
            "type": "string",
            "name": "selector"
          }
        ]
      },
      {
        "name": "getRequestedLocales",
        "type": "function",
        "async": true,
        "description": "Gets the requested locales.",
        "parameters": []
      },
      {
        "name": "addHistogram",
        "type": "function",
        "async": true,
        "description": "Add a sample with the given value to the histogram with the given id.",
        "parameters": [
          {
            "type": "string",
            "name": "id"
          },
          {
            "type": "any",
            "name": "value"
          }
        ]
      },
      {
        "name": "removeAllCertOverrides",
        "type": "function",
        "async": true,
        "description": "Revokes SSL certificate overrides.",
        "parameters": []
      },
      {
        "name": "setScalar",
        "type": "function",
        "async": true,
        "description": "Set the given value to the scalar with the given id.",
        "parameters": [
          {
            "type": "string",
            "name": "id"
          },
          {
            "type": "any",
            "name": "value"
          }
        ]
      },
      {
        "name": "setResolutionAndScaleTo",
        "type": "function",
        "async": true,
        "description": "Invokes nsIDOMWindowUtils.setResolutionAndScaleTo.",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          },
          {
            "type": "number",
            "name": "resolution"
          }
        ]
      },
      {
        "name": "getActive",
        "type": "function",
        "async": true,
        "description": "Returns true if the docShell is active for given tab.",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          }
        ]
      },
      {
        "name": "getPidForTab",
        "type": "function",
        "async": true,
        "description": "Gets the top-level pid belonging to tabId.",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          }
        ]
      },
      {
        "name": "waitForContentTransformsReceived",
        "type": "function",
        "async": true,
        "description": "If we want to test screen coordinates, we need to wait for the updated data which is what this function allows us to do",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          }
        ]
      },
      {
        "name": "getAllBrowserPids",
        "type": "function",
        "async": true,
        "description": "Gets the list of pids of the running browser processes",
        "parameters": []
      },
      {
        "name": "getProfilePath",
        "type": "function",
        "async": true,
        "description": "Gets the path of the current profile",
        "parameters": []
      },
      {
        "name": "killContentProcess",
        "type": "function",
        "async": true,
        "description": "Crash all content processes",
        "parameters": [
          {
            "type": "number",
            "name": "pid"
          }
        ]
      },
      {
        "name": "flushApzRepaints",
        "type": "function",
        "async": true,
        "description": "Invokes nsIDOMWindowUtils.flushApzRepaints for the document of the tabId.",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          }
        ]
      },
      {
        "name": "promiseAllPaintsDone",
        "type": "function",
        "async": true,
        "description": "A simplified version of promiseAllPaintsDone in paint_listeners.js.",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          }
        ]
      },
      {
        "name": "usingGpuProcess",
        "type": "function",
        "async": true,
        "description": "Returns true if Gecko is using a GPU process.",
        "parameters": []
      },

      {
        "name": "killGpuProcess",
        "type": "function",
        "async": true,
        "description": "Kills the GPU process cleanly without generating a crash report.",
        "parameters": []
      },

      {
        "name": "crashGpuProcess",
        "type": "function",
        "async": true,
        "description": "Causes the GPU process to crash.",
        "parameters": []
      },

      {
        "name": "clearHSTSState",
        "type": "function",
        "async": true,
        "description": "Clears the sites on the HSTS list.",
        "parameters": []
      },

      {
        "name": "triggerCookieBannerDetected",
        "type": "function",
        "async": true,
        "description": "Simulates a cookie banner detection",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          }
        ]
      },

      {
        "name": "triggerCookieBannerHandled",
        "type": "function",
        "async": true,
        "description": "Simulates a cookie banner handling",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          }
        ]
      },

      {
        "name": "triggerTranslationsOffer",
        "type": "function",
        "async": true,
        "description": "Simulates offering a translation.",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          }
        ]
      },

      {
        "name": "triggerLanguageStateChange",
        "type": "function",
        "async": true,
        "description": "Simulates expecting a translation.",
        "parameters": [
          {
            "type": "number",
            "name": "tabId"
          },
          {
            "name": "languageState",
            "type": "object",
            "properties": {},
            "additionalProperties": { "type": "any" }
          }
        ]
      }
    ]
  }
]