зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1362410 - Make the setTimeout run on the same target as HistoryTracker. r=smaug
MozReview-Commit-ID: KvcFxG7RMNZ --HG-- extra : rebase_source : e8c239c100ebe515ef098b4679b8bd9ecf46b15a
This commit is contained in:
Родитель
20a0c0f910
Коммит
a1cf236d7a
|
@ -52,8 +52,10 @@ add_task(async function testExpiredCache() {
|
|||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
// Wait for 3 times of expiration timeout, hopefully it's evicted...
|
||||
await new Promise(resolve => {
|
||||
setTimeout(resolve, 3000);
|
||||
await ContentTask.spawn(browser, null, () => {
|
||||
return new Promise(resolve => {
|
||||
content.setTimeout(resolve, 3000);
|
||||
});
|
||||
});
|
||||
|
||||
// Go back and verify text content.
|
||||
|
|
Загрузка…
Ссылка в новой задаче