diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-08-02 12:48:16 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-08-02 12:50:02 (GMT) |
commit | 04d48741240c61d75933d24084915a98d257d444 (patch) | |
tree | f8c23a2ff7e0d60174d520c6dbeb40007632dac7 /Slimber/UnitTest | |
parent | 2a3da91e474f645fe8d83cb2809dcc4b9bfe6a32 (diff) | |
download | swift-04d48741240c61d75933d24084915a98d257d444.zip swift-04d48741240c61d75933d24084915a98d257d444.tar.bz2 |
Slimber: Add restart menu.
Diffstat (limited to 'Slimber/UnitTest')
-rw-r--r-- | Slimber/UnitTest/MenuletControllerTest.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Slimber/UnitTest/MenuletControllerTest.cpp b/Slimber/UnitTest/MenuletControllerTest.cpp index d50e2c0..c666679 100644 --- a/Slimber/UnitTest/MenuletControllerTest.cpp +++ b/Slimber/UnitTest/MenuletControllerTest.cpp @@ -28,7 +28,7 @@ class MenuletControllerTest : public CppUnit::TestFixture { void testConstructor() { MenuletController testling(menulet); - CPPUNIT_ASSERT_EQUAL(7, static_cast<int>(menulet->items.size())); + CPPUNIT_ASSERT_EQUAL(8, static_cast<int>(menulet->items.size())); int i = 0; CPPUNIT_ASSERT_EQUAL(String("No online users"), menulet->items[i++]); CPPUNIT_ASSERT_EQUAL(String("-"), menulet->items[i++]); @@ -36,6 +36,7 @@ class MenuletControllerTest : public CppUnit::TestFixture { CPPUNIT_ASSERT_EQUAL(String("-"), menulet->items[i++]); CPPUNIT_ASSERT_EQUAL(String("*About*"), menulet->items[i++]); CPPUNIT_ASSERT_EQUAL(String("-"), menulet->items[i++]); + CPPUNIT_ASSERT_EQUAL(String("*Restart*"), menulet->items[i++]); CPPUNIT_ASSERT_EQUAL(String("*Exit*"), menulet->items[i++]); } @@ -44,7 +45,7 @@ class MenuletControllerTest : public CppUnit::TestFixture { testling.setXMPPStatus("You are connected", MenuletController::Online); - CPPUNIT_ASSERT_EQUAL(7, static_cast<int>(menulet->items.size())); + CPPUNIT_ASSERT_EQUAL(8, static_cast<int>(menulet->items.size())); int i = 0; CPPUNIT_ASSERT_EQUAL(String("No online users"), menulet->items[i++]); CPPUNIT_ASSERT_EQUAL(String("-"), menulet->items[i++]); @@ -52,6 +53,7 @@ class MenuletControllerTest : public CppUnit::TestFixture { CPPUNIT_ASSERT_EQUAL(String("-"), menulet->items[i++]); CPPUNIT_ASSERT_EQUAL(String("*About*"), menulet->items[i++]); CPPUNIT_ASSERT_EQUAL(String("-"), menulet->items[i++]); + CPPUNIT_ASSERT_EQUAL(String("*Restart*"), menulet->items[i++]); CPPUNIT_ASSERT_EQUAL(String("*Exit*"), menulet->items[i++]); } @@ -123,6 +125,10 @@ class MenuletControllerTest : public CppUnit::TestFixture { items.push_back("*About*"); } + virtual void addRestartItem() { + items.push_back("*Restart*"); + } + virtual void addExitItem() { items.push_back("*Exit*"); } |