lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6160] Make sure "Comments" field was updated correctly


From: Greg Chicares
Subject: [lmi-commits] [6160] Make sure "Comments" field was updated correctly
Date: Thu, 09 Apr 2015 17:56:32 +0000

Revision: 6160
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6160
Author:   chicares
Date:     2015-04-09 17:56:31 +0000 (Thu, 09 Apr 2015)
Log Message:
-----------
Make sure "Comments" field was updated correctly

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/wx_test_validate_output.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2015-04-09 16:34:32 UTC (rev 6159)
+++ lmi/trunk/ChangeLog 2015-04-09 17:56:31 UTC (rev 6160)
@@ -35997,3 +35997,9 @@
   roster.png    [new file]
 Add a group-roster toolbar button.
 
+20150409T1756Z <address@hidden> [516]
+
+  wx_test_validate_output.cpp
+Make sure "Comments" field was updated correctly. See:
+  http://lists.nongnu.org/archive/html/lmi/2015-04/msg00001.html
+

Modified: lmi/trunk/wx_test_validate_output.cpp
===================================================================
--- lmi/trunk/wx_test_validate_output.cpp       2015-04-09 16:34:32 UTC (rev 
6159)
+++ lmi/trunk/wx_test_validate_output.cpp       2015-04-09 17:56:31 UTC (rev 
6160)
@@ -39,6 +39,7 @@
 
 #include <wx/ffile.h>
 #include <wx/testing.h>
+#include <wx/textctrl.h>
 #include <wx/uiaction.h>
 
 namespace
@@ -82,8 +83,15 @@
         dialog->Show();
         wxYield();
 
-        wx_test_focus_controller_child(*dialog, "Comments");
+        wxWindow* const comments_window = wx_test_focus_controller_child
+            (*dialog
+            ,"Comments"
+            );
 
+        wxTextCtrl* const
+            comments_text = dynamic_cast<wxTextCtrl*>(comments_window);
+        LMI_ASSERT(comments_text);
+
         wxUIActionSimulator ui;
 
         // There could be an existing comment in this field, delete it first.
@@ -95,6 +103,8 @@
         ui.Text(comments_.c_str());
         wxYield();
 
+        LMI_ASSERT_EQUAL(comments_text->GetValue(), comments_);
+
         return wxID_OK;
         }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]