Skip to content

Commit

Permalink
add update test
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Mar 29, 2024
1 parent 3dd7088 commit 70fc497
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/tray_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,16 @@ TEST_CASE("FluentTray Test: ") {
CHECK((tray.end() - 1)->get_label(label34)) ;
CHECK_EQ(label34, "menu3") ;
}

SUBCASE("update") {
FluentTray tray ;
CHECK(tray.create_tray("test_update", "")) ;

CHECK(tray.add_menu("menu1")) ;
CHECK(tray.add_menu("menu2")) ;
CHECK(tray.add_menu("menu3")) ;

CHECK(tray.update()) ;
tray.stop() ;
}
}

0 comments on commit 70fc497

Please sign in to comment.