diff options
author | Dan Gudmundsson <[email protected]> | 2010-02-01 12:31:25 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-02-02 17:56:52 +0100 |
commit | aa17e2bb5e9d53c69dcd86b8bf31584db24fe35a (patch) | |
tree | 5ac5cc09bcb8d54406375dedc836a1f37e6bd8a7 /lib/wx/test | |
parent | e6433fcb3cc2a2896b6a7d488d7fbe25f2ad6bf2 (diff) | |
download | otp-aa17e2bb5e9d53c69dcd86b8bf31584db24fe35a.tar.gz otp-aa17e2bb5e9d53c69dcd86b8bf31584db24fe35a.tar.bz2 otp-aa17e2bb5e9d53c69dcd86b8bf31584db24fe35a.zip |
Added tests for wxListCtrl:getItem/2.
Diffstat (limited to 'lib/wx/test')
-rw-r--r-- | lib/wx/test/wx_class_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/wx/test/wx_class_SUITE.erl b/lib/wx/test/wx_class_SUITE.erl index ddb491be6c..76df6e4a23 100644 --- a/lib/wx/test/wx_class_SUITE.erl +++ b/lib/wx/test/wx_class_SUITE.erl @@ -361,6 +361,14 @@ listCtrlSort(Config) -> Time = timer:tc(erlang, apply, [Sort,[]]), io:format("Sorted ~p ~n",[Time]), + Item = wxListItem:new(), + _List = wx:map(fun(Int) -> + wxListItem:setId(Item, Int), + ?m(true, wxListCtrl:getItem(LC, Item)), + io:format("~s~n",[wxListItem:getText(Item)]) + end, lists:seq(0,100)), + wxListItem:destroy(Item), + wx_test_lib:wx_destroy(Frame,Config). |