diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-01 22:19:18 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-01 22:19:18 +0300 |
| commit | b9807cb96db2c32df592dde5f3b2b70b8c4c212c (patch) | |
| tree | 0f8da2f75da171f47cb78369a7b32e682fd431a3 /integrationtests/integration_test.go | |
| parent | 9058517557a6c47898b792a9b174c970c4d7d754 (diff) | |
Handle scroll-driven post selection for task b
Diffstat (limited to 'integrationtests/integration_test.go')
| -rw-r--r-- | integrationtests/integration_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
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") |
