зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
46929ae82f
Коммит
9985e57c16
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче