Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
/* Any copyright is dedicated to the Public Domain.
add_task(async function thumbnails_bug1775638() {
const tab = await BrowserTestUtils.openNewForegroundTab(
gBrowser,
);
const canvas = document.createElement("canvas");
const promise = PageThumbs.captureToCanvas(tab.linkedBrowser, canvas);
gBrowser.removeTab(tab);
is(await promise, canvas);
});