From a9263daee9413c5eff3c1f1bebcd224442fd8685 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 2 Aug 2026 17:38:06 -0300 Subject: vrsite: toggle repository file list --- vrsite/app_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vrsite/app_test.go') diff --git a/vrsite/app_test.go b/vrsite/app_test.go index 1ee7209..876e253 100644 --- a/vrsite/app_test.go +++ b/vrsite/app_test.go @@ -391,6 +391,8 @@ func TestServerPages(t *testing.T) { h := sv.handler() for _, tc := range []struct{ path, want string }{ {"/", "second line matters"}, + {"/", `id="filetoggle"`}, + {"/", `id="filelist"`}, {"/files", "hello.txt"}, {"/tree", `class="file`}, {"/notes", "second line matters"}, @@ -398,9 +400,11 @@ func TestServerPages(t *testing.T) { {"/jj", "revset"}, {"/change/" + change, "first change"}, {"/style.css", ".am1 {"}, + {"/style.css", `data-files="hidden"`}, {"/themes.css", `:root[data-theme="zed/one-light"]`}, {"/themes.js", "VRSITE_THEMES"}, {"/app.js", "vrsite-mode"}, + {"/app.js", "vrsite-files-hidden"}, {"/htmx.min.js", "htmx"}, } { w := get(t, h, tc.path, false) -- cgit v1.3