[Wgui-cvs] wgui/includes/unit_tests wg_progress_unittests.h,1.3,1.4
Status: Beta
Brought to you by:
greenwire
|
From: Rob W. <gre...@us...> - 2004-05-04 16:11:57
|
Update of /cvsroot/wgui/wgui/includes/unit_tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23997/includes/unit_tests Modified Files: wg_progress_unittests.h Log Message: Converted CProgressBar to inherit from CRangeControl Index: wg_progress_unittests.h =================================================================== RCS file: /cvsroot/wgui/wgui/includes/unit_tests/wg_progress_unittests.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wg_progress_unittests.h 2 Apr 2004 17:26:15 -0000 1.3 --- wg_progress_unittests.h 4 May 2004 16:11:13 -0000 1.4 *************** *** 50,59 **** ensure_equals("CProgress - GetMinLimit", pProgress->GetMinLimit(), 0); ensure_equals("CProgress - GetMaxLimit", pProgress->GetMaxLimit(), 100); ! ensure_equals("CProgress - GetProgress", pProgress->GetProgress(), 0); ! pProgress->SetLimits(-5, 10); ! ensure_equals("CProgress - SetLimits", pProgress->GetMinLimit(), -5); ! ensure_equals("CProgress - SetLimits", pProgress->GetMaxLimit(), 10); ! pProgress->SetProgress(8); ! ensure_equals("CProgress - SetProgress", pProgress->GetProgress(), 8); pProgress->SetBarColor(wGui::COLOR_RED); ensure("CProgress - SetBarColor", pProgress->GetBarColor() == wGui::COLOR_RED); --- 50,60 ---- ensure_equals("CProgress - GetMinLimit", pProgress->GetMinLimit(), 0); ensure_equals("CProgress - GetMaxLimit", pProgress->GetMaxLimit(), 100); ! ensure_equals("CProgress - GetValue", pProgress->GetValue(), 0); ! pProgress->SetMinLimit(-5); ! pProgress->SetMaxLimit(10); ! ensure_equals("CProgress - SetMinLimit", pProgress->GetMinLimit(), -5); ! ensure_equals("CProgress - SetMaxLimit", pProgress->GetMaxLimit(), 10); ! pProgress->SetValue(8); ! ensure_equals("CProgress - SetValue", pProgress->GetValue(), 8); pProgress->SetBarColor(wGui::COLOR_RED); ensure("CProgress - SetBarColor", pProgress->GetBarColor() == wGui::COLOR_RED); |