]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/propgrid/tests.cpp
Reworked wxSystemColourProperty::StringToValue() to use wxColour::Set() instead of...
[wxWidgets.git] / samples / propgrid / tests.cpp
index 5d62dbfe81b5e015915f7ecec3b1ee97efc3174e..3eafa29d971afd5ef0c84bf2864d849d0754009d 100644 (file)
@@ -752,6 +752,16 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
             wxLogDebug("Did not match: Car.Convertible=%s", pgman->GetPropertyValueAsString("Car.Convertible").c_str());
             RT_FAILURE();
         }
+
+        // SetPropertyValueString for special cases such as wxColour
+        pgman->SetPropertyValueString("ColourProperty", "(123,4,255)");
+        col << pgman->GetPropertyValue("ColourProperty");
+        if ( col != wxColour(123, 4, 255) )
+            RT_FAILURE();
+        pgman->SetPropertyValueString("ColourProperty", "#FE860B");
+        col << pgman->GetPropertyValue("ColourProperty");
+        if ( col != wxColour(254, 134, 11) )
+            RT_FAILURE();
     }
 
     {