diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-08-24 17:13:44 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-08-24 17:13:44 -0400 |
| commit | 0422e505333513beef8172cc79f2ec208293fc14 (patch) | |
| tree | 5bc87db442c9c0a9cf92f5c37d651be471e83076 /layout_test.go | |
| parent | 9bf3236dc993a3d8dbf4caf14bd448ab4de70a72 (diff) | |
| download | gui-0422e505333513beef8172cc79f2ec208293fc14.zip | |
move functionality of makeEventsChan() to external library
Diffstat (limited to 'layout_test.go')
| -rw-r--r-- | layout_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layout_test.go b/layout_test.go index 1999c63..4a78092 100644 --- a/layout_test.go +++ b/layout_test.go @@ -33,7 +33,7 @@ func TestSniffer(t *testing.T) { // Send events to sniffer. events := []Event{dummyEvent{"barEvent"}, dummyEvent{"fooEvent"}} for _, event := range events { - root.eventsIn <- event + root.events.Enqueue <- event eventp, ok := tryRecv(sniffer.Events(), timeout) if !ok { @@ -91,6 +91,6 @@ func TestResizer(t *testing.T) { } // this event should be replaced by the resizer - root.eventsIn <- Resize{image.Rectangle{}} + root.events.Enqueue <- Resize{image.Rectangle{}} } } |