From ff8a988bc749278b3b49db50f5da01d4d996f340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 23 Feb 2013 22:21:41 +0100 Subject: add missing 'delete,request' smart callback in some tests --- test/test_ecore_pipe.rb | 1 + test/test_layout.rb | 1 + test/test_naviframe.rb | 1 + test/test_panel.rb | 1 + test/test_panes.rb | 1 + 5 files changed, 5 insertions(+) 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 -- cgit v1.1-2-g2b99