From b9807cb96db2c32df592dde5f3b2b70b8c4c212c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 1 May 2026 22:19:18 +0300 Subject: Handle scroll-driven post selection for task b --- integrationtests/integration_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'integrationtests') diff --git a/integrationtests/integration_test.go b/integrationtests/integration_test.go index cb1553f..f53688d 100644 --- a/integrationtests/integration_test.go +++ b/integrationtests/integration_test.go @@ -374,6 +374,9 @@ func TestKeyboardNavJS(t *testing.T) { assertContains(t, sharedCSS, `.post-active`, "shared.css .post-active rule") sharedJS := readFile(t, filepath.Join(outputDir, "shared.js")) assertContains(t, sharedJS, `playNavSound`, "shared.js playNavSound function") + assertContains(t, sharedJS, `setupScrollDrivenSelection`, "shared.js scroll-driven selection") + assertContains(t, sharedJS, `activeIndexForVisibleRegion(sc)`, "shared.js visible center selection") + assertContains(t, sharedJS, `SCROLL_SELECTION_SOUND_GAP`, "shared.js throttles scroll selection sound") // Final shortcut mapping: p = ambient playback start/pause, f = flash. assertContains(t, sharedJS, "case 'p':", "shared.js p key handler") -- cgit v1.2.3