detached 19c41e7

test: remove unused stub test files

commit
19c41e71c99f6f9782e529199c800e203b677d20
author
bamen · · 2025-10-14 19:13 UTC
parent
1d9c4ce
signature
unsigned
4 files · +0 -74
D tests/integration/test_external_shortcuts.go +0 -19
@@ -1,19 +0,0 @@
1-package integration
2-
3-import (
4- "testing"
5-
6- "github.com/bnema/dumber/pkg/webkit"
7- "github.com/diamondburned/gotk4/pkg/gdk/v4"
8-)
9-
10-// Integration: keyboard shortcuts work on external sites once implemented.
11-func Test_WebKit_ExternalShortcuts_Integration(t *testing.T) {
12- view, err := webkit.NewWebView(&webkit.Config{})
13- if err != nil {
14- t.Fatalf("NewWebView failed: %v", err)
15- }
16- if err := view.RegisterKeyboardShortcut("k", uint(gdk.ControlMask), func() {}); err != nil {
17- t.Fatalf("RegisterKeyboardShortcut should succeed, got: %v", err)
18- }
19-}
@@ -1,19 +0,0 @@
1-package integration
2-
3-import (
4- "testing"
5-
6- "github.com/bnema/dumber/pkg/webkit"
7- "github.com/diamondburned/gotk4/pkg/gdk/v4"
8-)
9-
10-// Integration: keyboard shortcuts work on external sites once implemented.
11-func Test_WebKit_ExternalShortcuts_Integration(t *testing.T) {
12- view, err := webkit.NewWebView(&webkit.Config{})
13- if err != nil {
14- t.Fatalf("NewWebView failed: %v", err)
15- }
16- if err := view.RegisterKeyboardShortcut("k", uint(gdk.ControlMask), func() {}); err != nil {
17- t.Fatalf("RegisterKeyboardShortcut should succeed, got: %v", err)
18- }
19-}
D tests/integration/test_google_navigation.go +0 -17
@@ -1,17 +0,0 @@
1-package integration
2-
3-import (
4- "github.com/bnema/dumber/pkg/webkit"
5- "testing"
6-)
7-
8-// Integration: navigate to google.fr without error once implemented.
9-func Test_WebKit_GoogleNavigation_Integration(t *testing.T) {
10- view, err := webkit.NewWebView(&webkit.Config{})
11- if err != nil {
12- t.Fatalf("NewWebView failed: %v", err)
13- }
14- if err := view.LoadURL("https://www.google.fr"); err != nil {
15- t.Fatalf("LoadURL should succeed, got: %v", err)
16- }
17-}
@@ -1,17 +0,0 @@
1-package integration
2-
3-import (
4- "github.com/bnema/dumber/pkg/webkit"
5- "testing"
6-)
7-
8-// Integration: navigate to google.fr without error once implemented.
9-func Test_WebKit_GoogleNavigation_Integration(t *testing.T) {
10- view, err := webkit.NewWebView(&webkit.Config{})
11- if err != nil {
12- t.Fatalf("NewWebView failed: %v", err)
13- }
14- if err := view.LoadURL("https://www.google.fr"); err != nil {
15- t.Fatalf("LoadURL should succeed, got: %v", err)
16- }
17-}
D tests/integration/test_webkit_basic.go +0 -17
@@ -1,17 +0,0 @@
1-package integration
2-
3-import (
4- "github.com/bnema/dumber/pkg/webkit"
5- "testing"
6-)
7-
8-// Integration: basic WebKit window and navigation works.
9-func Test_WebKit_BasicWindow_Integration(t *testing.T) {
10- view, err := webkit.NewWebView(&webkit.Config{})
11- if err != nil {
12- t.Fatalf("NewWebView failed: %v", err)
13- }
14- if err := view.LoadURL("https://example.com"); err != nil {
15- t.Fatalf("LoadURL should succeed, got: %v", err)
16- }
17-}
@@ -1,17 +0,0 @@
1-package integration
2-
3-import (
4- "github.com/bnema/dumber/pkg/webkit"
5- "testing"
6-)
7-
8-// Integration: basic WebKit window and navigation works.
9-func Test_WebKit_BasicWindow_Integration(t *testing.T) {
10- view, err := webkit.NewWebView(&webkit.Config{})
11- if err != nil {
12- t.Fatalf("NewWebView failed: %v", err)
13- }
14- if err := view.LoadURL("https://example.com"); err != nil {
15- t.Fatalf("LoadURL should succeed, got: %v", err)
16- }
17-}
D tests/integration/test_zoom_persistence.go +0 -21
@@ -1,21 +0,0 @@
1-package integration
2-
3-import (
4- "github.com/bnema/dumber/pkg/webkit"
5- "testing"
6-)
7-
8-// Integration: zoom persists across operations (with DB) once implemented.
9-func Test_WebKit_ZoomPersistence_Integration(t *testing.T) {
10- view, err := webkit.NewWebView(&webkit.Config{})
11- if err != nil {
12- t.Fatalf("NewWebView failed: %v", err)
13- }
14- if err := view.SetZoom(1.1); err != nil {
15- t.Fatalf("SetZoom should succeed, got: %v", err)
16- }
17- z := view.GetZoom()
18- if z != 1.1 {
19- t.Fatalf("expected zoom 1.1, got %v", z)
20- }
21-}
@@ -1,21 +0,0 @@
1-package integration
2-
3-import (
4- "github.com/bnema/dumber/pkg/webkit"
5- "testing"
6-)
7-
8-// Integration: zoom persists across operations (with DB) once implemented.
9-func Test_WebKit_ZoomPersistence_Integration(t *testing.T) {
10- view, err := webkit.NewWebView(&webkit.Config{})
11- if err != nil {
12- t.Fatalf("NewWebView failed: %v", err)
13- }
14- if err := view.SetZoom(1.1); err != nil {
15- t.Fatalf("SetZoom should succeed, got: %v", err)
16- }
17- z := view.GetZoom()
18- if z != 1.1 {
19- t.Fatalf("expected zoom 1.1, got %v", z)
20- }
21-}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close