Skip to content

Commit 187ee49

Browse files
committed
test(interaction-harness): main's other two busy self-tests judge against the busy control
"A block that starts during a just-started transition" and "a block never starts on an animation that is not on the compositor yet" still judged their compositor animation against the display-rate bound alone. On a loaded runner that bound fails a component that moved on every frame. The second one failed this way on a gate run of #8911 (WebKit, 8 workers: "43/43 moved, longest stall 52 ms"), and in 3 of 16 Chromium runs at 16 workers ("31/31 moved, longest stall 169 ms"). Both now start the busy control before the cast and judge against what the compositor presented in the same window. Both pass 32 of 32 per engine at 16 workers. Their intent is unchanged: a block in the frame the transition has run 16 ms, and a block never on a pending animation, each still fails if the compositor's motion stalls longer than the control's.
1 parent 3e35bda commit 187ee49

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

‎internal/interaction-harness/src/harness.interaction.browser.spec.ts‎

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ test.describe('frame evidence', () => {
548548
await busyFixture(page);
549549
const box = page.locator('#box');
550550
await markElement(box, {mode: 'outline'});
551+
// Judged against what the compositor presented in the same window: a
552+
// loaded runner's compositor skips frames a display-rate bound counts.
553+
const control = await startBusyControl(page);
551554
const cast = await startScreencast(page);
552555
await expect.poll(() => cast.frameCount()).toBeGreaterThan(0);
553556
await box.evaluate(el => {
@@ -560,8 +563,13 @@ test.describe('frame evidence', () => {
560563
minProgressMs: 16,
561564
});
562565
await waitForRest(box);
563-
const tracked = await trackMarker(page, await cast.stop());
564-
const proof = busyWindowProof(tracked, window, {axis: 'y'});
566+
const frames = await cast.stop();
567+
await control.remove();
568+
const tracked = await trackMarker(page, frames);
569+
const proof = busyWindowProof(tracked, window, {
570+
axis: 'y',
571+
control: await trackMarker(page, frames, {rgb: CONTROL_RGB}),
572+
});
565573
testInfo.annotations.push({
566574
type: 'busy-main-thread transition',
567575
description: proof.summary,
@@ -892,6 +900,9 @@ test.describe('frame evidence', () => {
892900
await box.evaluate(el => {
893901
el.style.willChange = 'transform';
894902
});
903+
// Judged against what the compositor presented in the same window: a
904+
// loaded runner's compositor skips frames a display-rate bound counts.
905+
const control = await startBusyControl(page);
895906
const cast = await startScreencast(page);
896907
// A rAF loop registered before the helper's tick runs ahead of it in every
897908
// frame; on its 12th frame it creates the animation, and the helper's tick
@@ -916,8 +927,13 @@ test.describe('frame evidence', () => {
916927
minProgressMs: 0,
917928
});
918929
await waitForRest(box);
919-
const tracked = await trackMarker(page, await cast.stop());
920-
const proof = busyWindowProof(tracked, window, {axis: 'y'});
930+
const frames = await cast.stop();
931+
await control.remove();
932+
const tracked = await trackMarker(page, frames);
933+
const proof = busyWindowProof(tracked, window, {
934+
axis: 'y',
935+
control: await trackMarker(page, frames, {rgb: CONTROL_RGB}),
936+
});
921937
testInfo.annotations.push({
922938
type: 'busy-main-thread pending animation',
923939
description: proof.summary,

0 commit comments

Comments
 (0)