lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6059] Rectify test specification


From: Greg Chicares
Subject: [lmi-commits] [6059] Rectify test specification
Date: Wed, 10 Dec 2014 21:16:12 +0000

Revision: 6059
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6059
Author:   chicares
Date:     2014-12-10 21:16:10 +0000 (Wed, 10 Dec 2014)
Log Message:
-----------
Rectify test specification

Modified Paths:
--------------
    lmi/trunk/wx_test_default_update.cpp

Modified: lmi/trunk/wx_test_default_update.cpp
===================================================================
--- lmi/trunk/wx_test_default_update.cpp        2014-12-10 15:28:26 UTC (rev 
6058)
+++ lmi/trunk/wx_test_default_update.cpp        2014-12-10 21:16:10 UTC (rev 
6059)
@@ -1,4 +1,4 @@
-// Check that the default file can be opened and modified.
+// Make sure the default input file can be opened, modified, and saved.
 //
 // Copyright (C) 2014 Gregory W. Chicares.
 //
@@ -37,33 +37,25 @@
 
 #include <boost/filesystem/operations.hpp>
 
-/*
-    Test that the default file can be opened and modified.
+/// Make sure the default input file can be opened, modified, and saved.
+///
+/// Load the default input file, using its special command.
+///
+/// Change its "MEC avoidance" option. This particular option is used
+/// because it is available for almost any life insurance product.
+/// Save the changed file; make sure the appropriate message appears
+/// on the status bar. Make sure the saved file exists in its
+/// configured directory.
 
-    This implements the following item of the testing specification:
-
-        11. Ensure default file can be opened and modified.
-          A. File | Default | change a parameter | OK
-             File | Save
-             Expected results:
-               Status bar reads "Saved 'c:/fop-0.20.5/default.ill'."
-               'default.ill' exists in 'c:/fop-0.20.5/'
-
-    except that the currently configured default input filename is used 
instead of
-    the hard coded "default.ill".
-
-    The parameter currently being changed is the "MEC avoidance" choice, this 
is
-    arbitrary and could be replaced with changing another parameter in the 
future.
- */
 LMI_WX_TEST_CASE(default_update)
 {
     wxUIActionSimulator ui;
 
-    // Change the "MEC Avoidance" option in the first page of the defaults
+    // Change the "MEC avoidance" option in the first page of the defaults
     // dialog.
     ui.Char('t', wxMOD_CONTROL); // "File|Default"
 
-    struct change_mac_in_defaults_dialog
+    struct change_mec_avoidance_in_defaults_dialog
         :public wxExpectModalBase<MvcController>
     {
         virtual int OnInvoked(MvcController* dialog) const
@@ -78,7 +70,7 @@
             ui.Char(WXK_HOME);
             wxYield();
 
-            // Select the first button of the "MEC Avoidance" radio box.
+            // Select the first button of the "MEC avoidance" radio box.
             ui.Char(WXK_TAB);
             ui.Char(WXK_TAB);
             wxYield();
@@ -95,7 +87,7 @@
 
     wxTEST_DIALOG
         (wxYield()
-        ,change_mac_in_defaults_dialog()
+        ,change_mec_avoidance_in_defaults_dialog()
         );
 
     // Save the default document.




reply via email to

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