Browse Source

wxGUI/toolboxes: fix tests to reflect recent changes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71857 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 7 years ago
parent
commit
d72231c6df

+ 20 - 7
gui/wxpython/core/testsuite/data/test_toolboxes_menudata_ref.xml

@@ -3,20 +3,33 @@
 <menudata>
   <menubar>
     <menu>
-      <label>Region</label>
+      <label>Computational region</label>
       <items>
         <menuitem>
-          <label>Display region</label>
+          <label>Show current region</label>
           <command>g.region -p</command>
-          <help>Manages the boundary definitions for the geographic region.</help>
+          <help>Shows the extent and resolution of the computational region.</help>
+          <keywords>general,settings</keywords>
+          <handler>RunMenuCmd</handler>
+        </menuitem>
+        <menuitem>
+          <label>Show region using latitude and longitude</label>
+          <command>g.region -pl</command>
+          <help>Shows the extent and resolution of the computational region.</help>
           <keywords>general,settings</keywords>
           <handler>RunMenuCmd</handler>
         </menuitem>
         <menuitem>
+          <label>Show current region extent in Map Display</label>
+          <handler>OnShowRegionExtent</handler>
+          <help>Shows the extent of the computational region in Map Display.</help>
+          <keywords>general,settings</keywords>
+        </menuitem>
+        <menuitem>
           <label>Set region</label>
           <command>g.region</command>
           <help>Manages the boundary definitions for the geographic region.</help>
-          <keywords>general,settings</keywords>
+          <keywords>general,settings,computational region,extent,resolution,level1</keywords>
           <handler>OnMenuCmd</handler>
         </menuitem>
       </items>
@@ -28,7 +41,7 @@
           <label>Set region</label>
           <command>g.region</command>
           <help>Manages the boundary definitions for the geographic region.</help>
-          <keywords>general,settings</keywords>
+          <keywords>general,settings,computational region,extent,resolution,level1</keywords>
           <handler>OnMenuCmd</handler>
         </menuitem>
         <separator />
@@ -64,7 +77,7 @@
           <label>Convert coordinates</label>
           <command>m.proj</command>
           <help>Converts coordinates from one projection to another (cs2cs frontend).</help>
-          <keywords>miscellaneous,projection</keywords>
+          <keywords>miscellaneous,projection,transformation</keywords>
           <handler>OnMenuCmd</handler>
         </menuitem>
       </items>
@@ -76,7 +89,7 @@
           <label>Set region</label>
           <command>g.region</command>
           <help>Manages the boundary definitions for the geographic region.</help>
-          <keywords>general,settings</keywords>
+          <keywords>general,settings,computational region,extent,resolution,level1</keywords>
           <handler>OnMenuCmd</handler>
         </menuitem>
       </items>

+ 2 - 2
gui/wxpython/core/toolboxes.py

@@ -624,13 +624,13 @@ def _expandRuntimeModules(node, loadMetadata=True):
     ...                         '</items>')
     >>> _expandRuntimeModules(tree)
     >>> etree.tostring(tree)
-    '<items><module-item name="g.region"><module>g.region</module><description>Manages the boundary definitions for the geographic region.</description><keywords>general,settings</keywords></module-item></items>'
+    '<items><module-item name="g.region"><module>g.region</module><description>Manages the boundary definitions for the geographic region.</description><keywords>general,settings,computational region,extent,resolution,level1</keywords></module-item></items>'
     >>> tree = etree.fromstring('<items>'
     ...                         '<module-item name="m.proj"></module-item>'
     ...                         '</items>')
     >>> _expandRuntimeModules(tree)
     >>> etree.tostring(tree)
-    '<items><module-item name="m.proj"><module>m.proj</module><description>Converts coordinates from one projection to another (cs2cs frontend).</description><keywords>miscellaneous,projection</keywords></module-item></items>'
+    '<items><module-item name="m.proj"><module>m.proj</module><description>Converts coordinates from one projection to another (cs2cs frontend).</description><keywords>miscellaneous,projection,transformation</keywords></module-item></items>'
     """
     hasErrors = False
     modules = node.findall('.//module-item')