Bug 1675094 Replace executeSoon() with waitForTick() in accessible/tests/browser r=Jamie,yzen

Differential Revision: https://phabricator.services.mozilla.com/D95779
This commit is contained in:
Andrey Bienkowski 2020-11-05 18:27:40 +00:00
Родитель 46929ae82f
Коммит 9985e57c16
11 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@ -50,7 +50,7 @@ add_task(async function() {
// a reference to an accessible object.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -42,7 +42,7 @@ add_task(async function() {
// a reference to an accessible document.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -53,7 +53,7 @@ add_task(async function() {
// references to accessible objects.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Remove a reference to an accessible object.
acc = null;
@ -62,7 +62,7 @@ add_task(async function() {
// a reference to an accessible document.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -53,7 +53,7 @@ add_task(async function() {
// references to accessible objects.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Remove a reference to an accessible document.
docAcc = null;
@ -62,7 +62,7 @@ add_task(async function() {
// a reference to an accessible object.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -62,7 +62,7 @@ add_task(async function() {
// is a reference to an accessible proxy.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Remove a reference to an accessible proxy.
acc = null;
@ -71,7 +71,7 @@ add_task(async function() {
// a reference to an accessible document proxy.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -62,7 +62,7 @@ add_task(async function() {
// is a reference to an accessible proxy.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Remove a reference to an accessible document proxy.
docAcc = null;
@ -71,7 +71,7 @@ add_task(async function() {
// a reference to an accessible proxy.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -45,7 +45,7 @@ add_task(async function() {
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -78,7 +78,7 @@ add_task(async function() {
});
// Have some breathing room between a11y service shutdowns.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
info("Removing a service in parent");
// Now allow a11y service to shutdown in content.

Просмотреть файл

@ -57,7 +57,7 @@ add_task(async function() {
// is a reference to an accessible proxy.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -59,7 +59,7 @@ add_task(async function() {
// is a reference to an accessible proxy.
forceGC();
// Have some breathing room when removing a11y service references.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
// Now allow a11y service to shutdown.
canShutdown = true;

Просмотреть файл

@ -156,7 +156,7 @@ add_task(async function() {
);
// Have some breathing room between a11y service shutdowns.
await new Promise(resolve => executeSoon(resolve));
await TestUtils.waitForTick();
info("Removing a service in content");
// Now allow a11y service to shutdown in content.