Skip to content

Commit

Permalink
add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
lidaobing committed May 24, 2024
1 parent 6d63251 commit 26da0fd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/iptux/DialogPeerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,16 @@ TEST(DialogPeer, Constructor) {
do_action(dlgpr, "paste");
g_object_unref(pixbuf);

grpinf->buffer = gtk_text_buffer_new(NULL);
MsgPara msg(pal);
msg.dtlist.push_back(ChipData("helloworld"));

grpinf->addMsgPara(msg);

msg = MsgPara(pal);
msg.dtlist.push_back(
ChipData(MessageContentType::PICTURE, testDataPath("iptux.png")));
grpinf->addMsgPara(msg);

DestroyApplication(app);
}

0 comments on commit 26da0fd

Please sign in to comment.