mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
widget: tolerate nil shader in Editor movement methods
Fixes gio#142 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -155,6 +155,12 @@ func TestEditorCaretConsistency(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestEditorNoLayout(t *testing.T) {
|
||||
var e Editor
|
||||
e.SetText("hi!\n")
|
||||
e.Move(1)
|
||||
}
|
||||
|
||||
// Generate generates a value of itself, for testing/quick.
|
||||
func (editMutation) Generate(rand *rand.Rand, size int) reflect.Value {
|
||||
t := editMutation(rand.Intn(int(moveLast)))
|
||||
|
||||
Reference in New Issue
Block a user