From a274f6fe0f08c1d1cadafc97f972e0753e4dc4ca Mon Sep 17 00:00:00 2001 From: Walter Werner SCHNEIDER Date: Wed, 16 Jul 2025 18:10:18 +0300 Subject: [PATCH] app: properly initialize editorState for tests Signed-off-by: Walter Werner SCHNEIDER Signed-off-by: Elias Naur --- app/ime_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/ime_test.go b/app/ime_test.go index fc2dc4c3..87a3a434 100644 --- a/app/ime_test.go +++ b/app/ime_test.go @@ -6,6 +6,7 @@ package app import ( + "gioui.org/f32" "testing" "unicode/utf8" @@ -40,6 +41,7 @@ func FuzzIME(f *testing.F) { r.Frame(gtx.Ops) var state editorState + state.Selection.Transform = f32.AffineId() const ( cmdReplace = iota cmdSelect @@ -139,6 +141,7 @@ func FuzzIME(f *testing.F) { func TestEditorIndices(t *testing.T) { var s editorState + s.Selection.Transform = f32.AffineId() const str = "Hello, 😀" s.Snippet = key.Snippet{ Text: str,