зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1455176: Follow-up: Fix devtools bustage in more straggler tests that still use Task global. r=bustage
MozReview-Commit-ID: 9GzKdRlUXup --HG-- extra : rebase_source : db252c594d8109da077ce99ad17834ae998db89c
This commit is contained in:
Родитель
81856604ef
Коммит
72c0eaf14a
|
@ -61,7 +61,7 @@ function test() {
|
|||
chrome: true
|
||||
};
|
||||
|
||||
TargetFactory.forRemoteTab(options).then(Task.async(testTarget).bind(null, client));
|
||||
TargetFactory.forRemoteTab(options).then(testTarget.bind(null, client));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ function performChecks(target) {
|
|||
}
|
||||
|
||||
function test() {
|
||||
Task.spawn(async function() {
|
||||
(async function() {
|
||||
toggleAllTools(true);
|
||||
let tab = await addTab("about:blank");
|
||||
let target = TargetFactory.forTab(tab);
|
||||
|
@ -40,5 +40,5 @@ function test() {
|
|||
gBrowser.removeCurrentTab();
|
||||
toggleAllTools(false);
|
||||
finish();
|
||||
}, console.error);
|
||||
})();
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ function getTarget(client) {
|
|||
}
|
||||
|
||||
function test() {
|
||||
Task.spawn(async function() {
|
||||
(async function() {
|
||||
toggleAllTools(true);
|
||||
await addTab("about:blank");
|
||||
|
||||
|
@ -122,5 +122,5 @@ function test() {
|
|||
DebuggerServer.destroy();
|
||||
toggleAllTools(false);
|
||||
finish();
|
||||
}, console.error);
|
||||
})();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче