MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / waitForBackgroundPsnrSettled

Function waitForBackgroundPsnrSettled

e2e/webgpu-psnr-app.spec.ts:597–602  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

595}
596
597async function waitForBackgroundPsnrSettled(page: Page): Promise<void> {
598 await page.waitForTimeout(350);
599 await expect.poll(async () => {
600 return (await getPsnrState(page)).computing;
601 }, { timeout: 15_000 }).toBe(false);
602}
603
604async function getPsnrState(page: Page, imageId = SELECTED_IMAGE_ID): Promise<SplatPsnrState> {
605 return page.evaluate((nextImageId) => {

Callers 2

loadWebGpuFixtureAndWaitFunction · 0.85

Calls 1

getPsnrStateFunction · 0.70

Tested by

no test coverage detected