blob: 53fb77c4da82ac1503555c2a8ca9027d5565d424 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
"use strict";
add_task(async function test_scripting_enabled_in_mv2() {
const extension = ExtensionTestUtils.loadExtension({
manifest: {
manifest_version: 2,
permissions: ["scripting"],
},
background() {
browser.test.assertEq(
"object",
typeof browser.scripting,
"expected scripting namespace to be defined"
);
browser.test.sendMessage("background-done");
},
});
await extension.startup();
await extension.awaitMessage("background-done");
await extension.unload();
});
|