Add test of setting/getting wxPGProperty attributes through wxPropertyGridManager
This commit is contained in:
@@ -961,6 +961,19 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
RT_FAILURE();
|
RT_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
RT_START_TEST(Attributes with PGManager)
|
||||||
|
|
||||||
|
const long val = 25;
|
||||||
|
pgman->SetPropertyAttribute("IntProperty", "Dummy Attribute", val);
|
||||||
|
if ( pgman->GetPropertyAttribute("IntProperty", "Dummy Attribute").GetLong() != val )
|
||||||
|
RT_FAILURE();
|
||||||
|
|
||||||
|
pgman->SetPropertyAttribute("IntProperty", "Dummy Attribute", wxVariant());
|
||||||
|
if ( !pgman->GetPropertyAttribute("IntProperty", "Dummy Attribute").IsNull() )
|
||||||
|
RT_FAILURE();
|
||||||
|
}
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_3_0
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
{
|
{
|
||||||
RT_START_TEST(DoubleToString)
|
RT_START_TEST(DoubleToString)
|
||||||
|
Reference in New Issue
Block a user