diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ecore_pipe.rb | 1 | ||||
-rw-r--r-- | test/test_layout.rb | 1 | ||||
-rw-r--r-- | test/test_naviframe.rb | 1 | ||||
-rw-r--r-- | test/test_panel.rb | 1 | ||||
-rw-r--r-- | test/test_panes.rb | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/test/test_ecore_pipe.rb b/test/test_ecore_pipe.rb index e2786b3..93d83c6 100644 --- a/test/test_ecore_pipe.rb +++ b/test/test_ecore_pipe.rb @@ -14,6 +14,7 @@ class MyWin < Elm::ElmWin def initialize super(nil, "Pipe test") do title_set "Hello, World!" + smart_callback_add("delete,request", ->(*_) { Elm.exit }, nil) resize 200, 100 show end diff --git a/test/test_layout.rb b/test/test_layout.rb index 34cc4aa..5065e49 100644 --- a/test/test_layout.rb +++ b/test/test_layout.rb @@ -17,6 +17,7 @@ class MyWin < Elm::ElmWin @current = 0 super(nil, "Layout") do title_set "Layout" + smart_callback_add("delete,request", ->(*_) { Elm.exit }, nil) resize 320, 320 show end diff --git a/test/test_naviframe.rb b/test/test_naviframe.rb index 9350d06..b0e200e 100644 --- a/test/test_naviframe.rb +++ b/test/test_naviframe.rb @@ -14,6 +14,7 @@ class MyWin < Elm::ElmWin def initialize super(nil, "Greetings") do title_set "Hello, World!" + smart_callback_add("delete,request", ->(*_) { Elm.exit }, nil) resize 240, 400 show end diff --git a/test/test_panel.rb b/test/test_panel.rb index ac04894..705207b 100644 --- a/test/test_panel.rb +++ b/test/test_panel.rb @@ -14,6 +14,7 @@ class MyWin < Elm::ElmWin def initialize super(nil, "Greetings") do title_set "Hello, World!" + smart_callback_add("delete,request", ->(*_) { Elm.exit }, nil) resize 240, 400 show end diff --git a/test/test_panes.rb b/test/test_panes.rb index db2de03..1554df3 100644 --- a/test/test_panes.rb +++ b/test/test_panes.rb @@ -13,6 +13,7 @@ class MyWin < Elm::ElmWin def initialize super(nil, "Greetings") do title_set "Hello, World!" + smart_callback_add("delete,request", ->(*_) { Elm.exit }, nil) resize 320, 400 show end |