aboutsummaryrefslogtreecommitdiffstats
path: root/layout_test.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-08-24 17:13:44 -0400
committerSam Anthony <sam@samanthony.xyz>2024-08-24 17:13:44 -0400
commit0422e505333513beef8172cc79f2ec208293fc14 (patch)
tree5bc87db442c9c0a9cf92f5c37d651be471e83076 /layout_test.go
parent9bf3236dc993a3d8dbf4caf14bd448ab4de70a72 (diff)
downloadgui-0422e505333513beef8172cc79f2ec208293fc14.zip
move functionality of makeEventsChan() to external library
Diffstat (limited to 'layout_test.go')
-rw-r--r--layout_test.go4
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{}}
}
}