aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/test/wx_basic_SUITE.erl
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2012-11-21 15:17:22 +0100
committerHenrik Nord <[email protected]>2012-11-21 15:17:28 +0100
commitc8b514e8e67d33ae6179bea156ed1d5047daee5f (patch)
tree9c995eba2442fd24c61af66879074d5fff5975e3 /lib/wx/test/wx_basic_SUITE.erl
parenta545edc30363ea1ddf8b7805c38e748ed4741ffc (diff)
parent61ec7e2dc50b15e2677771c72a372bf0daf00950 (diff)
downloadotp-c8b514e8e67d33ae6179bea156ed1d5047daee5f.tar.gz
otp-c8b514e8e67d33ae6179bea156ed1d5047daee5f.tar.bz2
otp-c8b514e8e67d33ae6179bea156ed1d5047daee5f.zip
Merge branch 'hm/wx-silent_start'
* hm/wx-silent_start: Enable silent start of wx OTP-10585
Diffstat (limited to 'lib/wx/test/wx_basic_SUITE.erl')
-rw-r--r--lib/wx/test/wx_basic_SUITE.erl21
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/wx/test/wx_basic_SUITE.erl b/lib/wx/test/wx_basic_SUITE.erl
index 46c72bb453..20115a41fb 100644
--- a/lib/wx/test/wx_basic_SUITE.erl
+++ b/lib/wx/test/wx_basic_SUITE.erl
@@ -47,7 +47,7 @@ end_per_testcase(Func,Config) ->
suite() -> [{ct_hooks,[ts_install_cth]}].
all() ->
- [create_window, several_apps, wx_api, wx_misc,
+ [silent_start, create_window, several_apps, wx_api, wx_misc,
data_types, wx_object].
groups() ->
@@ -62,6 +62,25 @@ end_per_group(_GroupName, Config) ->
%% The test cases
+%% test silent start of wx
+silent_start(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+silent_start(_Config) ->
+ ?mr(wx_ref, wx:new([])),
+ wx:destroy(),
+
+ ?mr(wx_ref, wx:new([{silent_start, true}])),
+ wx:destroy(),
+
+ ?mr(wx_ref, wx:new([{silent_start, true}, {debug, verbose}])),
+ wx:destroy(),
+
+ ?mr(wx_ref, wx:new([{silent_start, false}])),
+ wx:destroy(),
+
+ ?mr('EXIT', catch wx:new([{silent_start, foo}])),
+
+ ok.
+
%% create and test creating a window
create_window(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
create_window(Config) ->