зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1864896: Autofix unused function arguments (extensions/permissions). r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D202966
This commit is contained in:
Родитель
0d866b2f8f
Коммит
abcec2057e
|
@ -12,7 +12,7 @@ add_task(async function test_permissions_sent_over_ipc_on_bloburl() {
|
|||
// setup a profile.
|
||||
do_get_profile();
|
||||
|
||||
async function assertExpectedContentPage(contentPage) {
|
||||
async function assertExpectedContentPage() {
|
||||
const [processType, remoteType, principalSpec] = await page.spawn(
|
||||
[],
|
||||
async () => {
|
||||
|
|
|
@ -109,7 +109,7 @@ add_task(async function test() {
|
|||
["http://foo.com^inBrowser=1", "A", 2, 0, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// Add some places to the places database
|
||||
await PlacesTestUtils.addVisits(
|
||||
|
|
|
@ -139,7 +139,7 @@ add_task(async function test() {
|
|||
["https://[::1]", "3rdPartyStorage^https://www.a.co.uk", 2, 0, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// Add some places to the places database
|
||||
await PlacesTestUtils.addVisits(
|
||||
|
|
|
@ -185,7 +185,7 @@ add_task(async function test() {
|
|||
["https://192.0.2.235", "A", 1, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// Add some places to the places database
|
||||
await PlacesTestUtils.addVisits(
|
||||
|
|
|
@ -203,7 +203,7 @@ add_task(function test() {
|
|||
["https://127.0.0.1", "A", 1, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// This will force the permission-manager to reload the data.
|
||||
Services.obs.notifyObservers(null, "testonly-reload-permissions-from-disk");
|
||||
|
|
|
@ -252,7 +252,7 @@ add_task(async function test() {
|
|||
["https://192.0.2.235", "A", 1, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// Add some places to the places database
|
||||
await PlacesTestUtils.addVisits(
|
||||
|
|
|
@ -108,7 +108,7 @@ add_task(function test() {
|
|||
["http://localhost", "B", 2, 0, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// This will force the permission-manager to reload the data.
|
||||
Services.obs.notifyObservers(null, "testonly-reload-permissions-from-disk");
|
||||
|
|
|
@ -253,7 +253,7 @@ add_task(async function test() {
|
|||
["https://192.0.2.235", "A", 1, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// Add some places to the places database
|
||||
await PlacesTestUtils.addVisits(
|
||||
|
|
|
@ -104,7 +104,7 @@ add_task(function test() {
|
|||
["http://foo.com^inBrowser=1", "A", 2, 0, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// This will force the permission-manager to reload the data.
|
||||
Services.obs.notifyObservers(null, "testonly-reload-permissions-from-disk");
|
||||
|
|
|
@ -238,7 +238,7 @@ add_task(async function test() {
|
|||
["https://192.0.2.235", "A", 2, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// Add some places to the places database
|
||||
await PlacesTestUtils.addVisits(
|
||||
|
|
|
@ -175,7 +175,7 @@ add_task(async function test() {
|
|||
["http://foo.com^inBrowser=1", "A", 2, 0, 0, 0],
|
||||
];
|
||||
|
||||
let found = expected.map(it => 0);
|
||||
let found = expected.map(() => 0);
|
||||
|
||||
// Add some places to the places database
|
||||
await PlacesTestUtils.addVisits(
|
||||
|
|
Загрузка…
Ссылка в новой задаче