Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions rust/perspective-viewer/test/js/stability/leaks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test.describe("Memory Leaks", () => {

// From a helpful blog
// https://media-codings.com/articles/automatically-detect-memory-leaks-with-puppeteer
await page.evaluate(() => window.gc());
await page.evaluate(() => window.gc?.());
const heap1 = await page.evaluate(
() => performance.memory.usedJSHeapSize,
);
Expand All @@ -61,7 +61,7 @@ test.describe("Memory Leaks", () => {
// TODO this is very generous memory allowance suggests we
// leak ~0.1% per instance.
// TODO: Not yet sure how to access window.gc() in Playwright
await page.evaluate(() => window.gc());
await page.evaluate(() => window.gc?.());
const heap2 = await page.evaluate(
() => performance.memory.usedJSHeapSize,
);
Expand All @@ -84,7 +84,7 @@ test.describe("Memory Leaks", () => {
await viewer.reset();
}, viewer);

await page.evaluate(() => window.gc());
await page.evaluate(() => window.gc?.());
const heap1 = await page.evaluate(
() => performance.memory.usedJSHeapSize,
);
Expand All @@ -108,7 +108,7 @@ test.describe("Memory Leaks", () => {
}, viewer);
}

await page.evaluate(() => window.gc());
await page.evaluate(() => window.gc?.());
const heap2 = await page.evaluate(
() => performance.memory.usedJSHeapSize,
);
Expand All @@ -130,7 +130,7 @@ test.describe("Memory Leaks", () => {
await viewer.reset();
}, viewer);

await page.evaluate(() => window.gc());
await page.evaluate(() => window.gc?.());
const heap1 = await page.evaluate(
() => performance.memory.usedJSHeapSize,
);
Expand All @@ -144,7 +144,7 @@ test.describe("Memory Leaks", () => {
}, viewer);
}

await page.evaluate(() => window.gc());
await page.evaluate(() => window.gc?.());
const heap2 = await page.evaluate(
() => performance.memory.usedJSHeapSize,
);
Expand Down
1 change: 1 addition & 0 deletions tools/test/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const DEVICE_OPTIONS = {
],
},
},
Firefox: {},
};

const BROWSER_PACKAGES = [
Expand Down
Binary file modified tools/test/results.tar.gz
Binary file not shown.
Loading