Updated 'Car' test to match a recent change in the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
433969811e
commit
84dcb416c8
@ -711,11 +711,11 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
RT_FAILURE();
|
||||
|
||||
// Make sure children of composite parent get updated as well
|
||||
// Original string value: "Lamborghini Diablo SV; 5707; [300; 3.9; 8.6] 300000"
|
||||
// Original string value: "Lamborghini Diablo SV; 5707; [300; 3.9; 8.6] 300000; Not Convertible"
|
||||
|
||||
//
|
||||
// This updates children as well
|
||||
wxString nvs = "Lamborghini Diablo XYZ; 5707; [100; 3.9; 8.6] 3000002";
|
||||
wxString nvs = "Lamborghini Diablo XYZ; 5707; [100; 3.9; 8.6] 3000002; Convertible";
|
||||
pgman->SetPropertyValue("Car", nvs);
|
||||
|
||||
if ( pgman->GetPropertyValueAsString("Car.Model") != "Lamborghini Diablo XYZ" )
|
||||
@ -735,6 +735,12 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
wxLogDebug("Did not match: Car.Price ($)=%s", pgman->GetPropertyValueAsString("Car.Price ($)").c_str());
|
||||
RT_FAILURE();
|
||||
}
|
||||
|
||||
if ( !pgman->GetPropertyValueAsBool("Car.Convertible") )
|
||||
{
|
||||
wxLogDebug("Did not match: Car.Convertible=%s", pgman->GetPropertyValueAsString("Car.Convertible").c_str());
|
||||
RT_FAILURE();
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user