Skip to content

Open source CapCut alternative.

TypeScript

test(site): the filmstrip perf case seeds its fixture's size

David Lecd2b72fb842a
diff --git a/site/scripts/eval-cut-perf.ts b/site/scripts/eval-cut-perf.ts
index 29d389b5..730b8856 100644
--- a/site/scripts/eval-cut-perf.ts
+++ b/site/scripts/eval-cut-perf.ts
@@ -722,7 +722,7 @@ async function seed(page: Page, files: string[], transitions: boolean): Promise<
* hand, captures still to earn. */
const seedTimeCoded = (src: string, cuts: number[]) => async (page: Page): Promise<Fixture> =>
page.evaluate(
- async ({ duration, src, cuts }) => {
+ async ({ duration, src, cuts, width, height }) => {
const dev = (window as unknown as {
__cutDev: {
useEditor: {
@@ -756,7 +756,7 @@ const seedTimeCoded = (src: string, cuts: number[]) => async (page: Page): Promi
await dev.enrichAsset(dev.useEditor.getState().assets[0]);
return { cuts, duration };
},
- { duration: RAMP_S, src, cuts }
+ { duration: RAMP_S, src, cuts, width: 1280, height: 720 }
);
const startTrace = (page: Page) =>