Skip to content

Commit

Permalink
Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,pe…
Browse files Browse the repository at this point in the history
…rftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish

Differential Revision: https://phabricator.services.mozilla.com/D177025
  • Loading branch information
Standard8 committed May 20, 2023
1 parent 4ee0b4f commit 8219a5c
Show file tree
Hide file tree
Showing 7,797 changed files with 22,024 additions and 23,345 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ addAccessibleTask(
`
<div id="root" role="group"><div id="scrollable" role="presentation" style="height: 1px;"><button id="button">test</button></div></div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
let button = findAccessibleChildByID(docAcc, "button");
assertBoundsNonZero(button);

Expand Down
8 changes: 4 additions & 4 deletions accessible/tests/browser/bounds/browser_position.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ addAccessibleTask(
test
</div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
await testBoundsWithContent(docAcc, "div", browser);
info("Changing left");
await invokeContentTask(browser, [], () => {
Expand Down Expand Up @@ -47,7 +47,7 @@ addAccessibleTask(
</div>
<p id="noReflow">noReflow</p>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
for (const id of ["reflowContainer", "reflow3", "noReflow"]) {
await testBoundsWithContent(docAcc, id, browser);
}
Expand Down Expand Up @@ -79,7 +79,7 @@ addAccessibleTask(
</div>
</div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
const paraTree = { PARAGRAPH: [{ TEXT_LEAF: [] }] };
const container = findAccessibleChildByID(docAcc, "container");
testAccessibleTree(container, { SECTION: [paraTree, paraTree] });
Expand All @@ -91,7 +91,7 @@ addAccessibleTask(
await invokeContentTask(browser, [], () => {
content.document
.querySelector(".pParent")
.addEventListener("click", function() {});
.addEventListener("click", function () {});
});
await reordered;
testAccessibleTree(container, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function testBoundsWithOffset(browser, iframeDocAcc, id, domElmBounds, offset) {

addAccessibleTask(
`<div id='${ELEM_ID}'>hello world</div>`,
async function(browser, iframeDocAcc, contentDocAcc) {
async function (browser, iframeDocAcc, contentDocAcc) {
ok(iframeDocAcc, "IFRAME document accessible is present");

await testBoundsWithContent(iframeDocAcc, ELEM_ID, browser);
Expand Down Expand Up @@ -143,7 +143,7 @@ addAccessibleTask(
*/
addAccessibleTask(
`<div id="div" style="width: 30px; height: 30px"></div>`,
async function(browser, accDoc, foo) {
async function (browser, accDoc, foo) {
const docWidth = () => {
let width = {};
accDoc.getBounds({}, {}, width, {});
Expand Down Expand Up @@ -172,7 +172,7 @@ addAccessibleTask(
<iframe id="iframe" src="data:text/html,"></iframe>
</ol>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
let iframeDoc = findAccessibleChildByID(docAcc, "iframe").firstChild;
ok(iframeDoc, "Got the iframe document");
const origX = {};
Expand Down
18 changes: 9 additions & 9 deletions accessible/tests/browser/bounds/browser_test_simple_transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ loadScripts({ name: "role.js", dir: MOCHITESTS_DIR });
// test basic translation
addAccessibleTask(
`<p id="translate">hello world</p>`,
async function(browser, iframeDocAcc, contentDocAcc) {
async function (browser, iframeDocAcc, contentDocAcc) {
ok(iframeDocAcc, "IFRAME document accessible is present");
await testBoundsWithContent(iframeDocAcc, "translate", browser);

Expand All @@ -32,7 +32,7 @@ addAccessibleTask(
<p id="p2">world</p>
</div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
await testBoundsWithContent(docAcc, "p1", browser);
await testBoundsWithContent(docAcc, "p2", browser);
},
Expand All @@ -42,7 +42,7 @@ addAccessibleTask(
// test basic rotation
addAccessibleTask(
`<p id="rotate">hello world</p>`,
async function(browser, iframeDocAcc, contentDocAcc) {
async function (browser, iframeDocAcc, contentDocAcc) {
ok(iframeDocAcc, "IFRAME document accessible is present");
await testBoundsWithContent(iframeDocAcc, "rotate", browser);

Expand All @@ -60,7 +60,7 @@ addAccessibleTask(
// test basic scale
addAccessibleTask(
`<p id="scale">hello world</p>`,
async function(browser, iframeDocAcc, contentDocAcc) {
async function (browser, iframeDocAcc, contentDocAcc) {
ok(iframeDocAcc, "IFRAME document accessible is present");
await testBoundsWithContent(iframeDocAcc, "scale", browser);

Expand Down Expand Up @@ -89,7 +89,7 @@ addAccessibleTask(
</div>
</div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
// Even though willChangeTop has no transform, it has
// will-change: transform, which means nsIFrame::IsTransformed returns
// true. We don't cache identity matrices, but because there is an offset
Expand Down Expand Up @@ -128,7 +128,7 @@ addAccessibleTask(
<p>test</p>
</div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
const tree = { TEXT_CONTAINER: [{ PARAGRAPH: [{ TEXT_LEAF: [] }] }] };

const divWithTransform = findAccessibleChildByID(docAcc, "container")
Expand All @@ -155,7 +155,7 @@ addAccessibleTask(
<p>test</p>
</div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
let divToTransform = findAccessibleChildByID(docAcc, "div-to-transform");
ok(!divToTransform, "There should not be a div accessible.");

Expand Down Expand Up @@ -188,7 +188,7 @@ addAccessibleTask(
</div>
</div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
await testBoundsWithContent(docAcc, "transform", browser);
await testBoundsWithContent(docAcc, "p", browser);
},
Expand All @@ -202,7 +202,7 @@ addAccessibleTask(
<p id="test">hello world</p><hr style="height: 100vh;">
</div>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
info(
"Testing that the unscrolled bounds of a transformed element are correct."
);
Expand Down
10 changes: 5 additions & 5 deletions accessible/tests/browser/bounds/browser_zero_area.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ addAccessibleTask(
<div id="a2" style="height:100px; width:100px; background:green;"><div style="height:300px; max-width: 300px; background:blue;"></div></div>
<div id="a3" style="height:0; width:0;"><div style="height:200px; width:200px; background:green;"></div></div>
`,
async function(browser, accDoc) {
async function (browser, accDoc) {
const a1 = findAccessibleChildByID(accDoc, "a1");
const a2 = findAccessibleChildByID(accDoc, "a2");
const a3 = findAccessibleChildByID(accDoc, "a3");
Expand All @@ -49,7 +49,7 @@ addAccessibleTask(
<br>
<div id="a" style="height:0; width:0;"></div>
`,
async function(browser, accDoc) {
async function (browser, accDoc) {
const a = findAccessibleChildByID(accDoc, "a");
await testContentBounds(browser, a, 0, 0);
}
Expand All @@ -63,7 +63,7 @@ addAccessibleTask(
`
<input type="radio" id="radio" style="left: -671091em; position: absolute;">
`,
async function(browser, accDoc) {
async function (browser, accDoc) {
const radio = findAccessibleChildByID(accDoc, "radio");
const contentDPR = await getContentDPR(browser);
const [x, y, width, height] = getBounds(radio, contentDPR);
Expand Down Expand Up @@ -93,7 +93,7 @@ addAccessibleTask(
<div id="inner1">testing</div>
</aside>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
await testBoundsWithContent(docAcc, "inner0", browser);
await testBoundsWithContent(docAcc, "inner1", browser);
},
Expand All @@ -110,7 +110,7 @@ addAccessibleTask(
<div id="div">Testing</div>
</span>
`,
async function(browser, docAcc) {
async function (browser, docAcc) {
await testBoundsWithContent(docAcc, "span", browser);
await testBoundsWithContent(docAcc, "div", browser);
},
Expand Down
2 changes: 1 addition & 1 deletion accessible/tests/browser/browser_shutdown_acc_reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Create a11y service.
const [a11yInitObserver, a11yInit] = initAccService();
await a11yInitObserver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Create a11y service.
const [a11yInitObserver, a11yInit] = initAccService();
await a11yInitObserver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Create a11y service.
const [a11yInitObserver, a11yInit] = initAccService();
await a11yInitObserver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Create a11y service.
const [a11yInitObserver, a11yInit] = initAccService();
await a11yInitObserver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Making sure that the e10s is enabled on Windows for testing.
await setE10sPrefs();

Expand Down Expand Up @@ -33,7 +33,7 @@ add_task(async function() {
<body id="body"><div id="div"></div></body>
</html>`,
},
async function(browser) {
async function (browser) {
let docLoadedEvent = await docLoaded;
let docAcc = docLoadedEvent.accessibleDocument;
ok(docAcc, "Accessible document proxy is created");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Making sure that the e10s is enabled on Windows for testing.
await setE10sPrefs();

Expand Down Expand Up @@ -33,7 +33,7 @@ add_task(async function() {
<body id="body"><div id="div"></div></body>
</html>`,
},
async function(browser) {
async function (browser) {
let docLoadedEvent = await docLoaded;
let docAcc = docLoadedEvent.accessibleDocument;
ok(docAcc, "Accessible document proxy is created");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
info("Creating a service");
// Create a11y service.
const [a11yInitObserver, a11yInit] = initAccService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Making sure that the e10s is enabled on Windows for testing.
await setE10sPrefs();

Expand All @@ -20,7 +20,7 @@ add_task(async function() {
<body></body>
</html>`,
},
async function(browser) {
async function (browser) {
info(
"Creating a service in parent and waiting for service to be created " +
"in content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Making sure that the e10s is enabled on Windows for testing.
await setE10sPrefs();

Expand All @@ -29,7 +29,7 @@ add_task(async function() {
<body><div id="div" style="visibility: hidden;"></div></body>
</html>`,
},
async function(browser) {
async function (browser) {
let onShow = waitForEvent(Ci.nsIAccessibleEvent.EVENT_SHOW, "div");
await invokeSetStyle(browser, "div", "visibility", "visible");
let showEvent = await onShow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Making sure that the e10s is enabled on Windows for testing.
await setE10sPrefs();

Expand Down Expand Up @@ -33,7 +33,7 @@ add_task(async function() {
<body id="body"></body>
</html>`,
},
async function(browser) {
async function (browser) {
let docLoadedEvent = await docLoaded;
let docAcc = docLoadedEvent.accessibleDocument;
ok(docAcc, "Accessible document proxy is created");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Making sure that the e10s is enabled on Windows for testing.
await setE10sPrefs();

Expand All @@ -20,7 +20,7 @@ add_task(async function() {
<body></body>
</html>`,
},
async function(browser) {
async function (browser) {
info(
"Creating a service in parent and waiting for service to be created " +
"in content"
Expand Down
4 changes: 2 additions & 2 deletions accessible/tests/browser/browser_shutdown_remote_only.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Making sure that the e10s is enabled on Windows for testing.
await setE10sPrefs();

Expand All @@ -20,7 +20,7 @@ add_task(async function() {
<body></body>
</html>`,
},
async function(browser) {
async function (browser) {
info("Creating a service in content");
await loadContentScripts(browser, {
script: "Common.sys.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

add_task(async function() {
add_task(async function () {
// Making sure that the e10s is enabled on Windows for testing.
await setE10sPrefs();

Expand All @@ -20,7 +20,7 @@ add_task(async function() {
<body></body>
</html>`,
},
async function(browser) {
async function (browser) {
info(
"Creating a service in parent and waiting for service to be created " +
"in content"
Expand Down
Loading

0 comments on commit 8219a5c

Please sign in to comment.