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

Function switchPointCloudToSplats

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

Source from the content-addressed store, hash-verified

569}
570
571async function switchPointCloudToSplats(page: Page): Promise<void> {
572 const pointCloudButton = page.locator('button[aria-label^="Point Cloud:"]').first();
573 await expect(pointCloudButton).toBeVisible({ timeout: 10_000 });
574
575 for (let attempt = 0; attempt < 7; attempt += 1) {
576 const label = await pointCloudButton.getAttribute('aria-label');
577 if (label === 'Point Cloud: Splats (P)') {
578 return;
579 }
580
581 await page.keyboard.press('p');
582 await page.waitForTimeout(50);
583 }
584
585 await expect(pointCloudButton).toHaveAttribute('aria-label', 'Point Cloud: Splats (P)');
586}
587
588async function waitForPsnrFrameReady(page: Page): Promise<void> {
589 await expect.poll(async () => {

Callers 3

loadWebGpuFixtureAndWaitFunction · 0.70
prepareWebGpuPsnrAppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected