Changeset 32690


Ignore:
Timestamp:
2018-12-16T19:58:14+13:00 (5 years ago)
Author:
ak19
Message:

New flag -testing_mode when running GLI only used by the test harness.

Location:
gs3-extensions/testing/trunk/src/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/testing/trunk/src/src/gstests/tutorials/RunGLITest.java

    r32688 r32690  
    9999                                 "-gsdlos", GSDLOS,
    100100                                 "-gsdl3", GSDL3HOME,
    101                                  "-gsdl3src", GSDL3SRCHOME).start();
     101                                 "-gsdl3src", GSDL3SRCHOME,
     102                                 "-testing_mode").start();
    102103    }
    103104   
  • gs3-extensions/testing/trunk/src/src/org/greenstone/gsdl3/testing/GSGUITestingUtil.java

    r32687 r32690  
    2323
    2424    /************** NEEDED FOR TESTING *************/
    25     /*
    26       Google: "Java swing automatically setName"
    27       -> https://stackoverflow.com/questions/3628218/strategy-for-naming-swing-components
    28       - https://stackoverflow.com/questions/4163500/how-to-automatic-set-name-attr-of-gui-components/4164479#4164479
    29       - https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.wb.swing.doc.user%2Fhtml%2Fwizards%2Fswing%2Fautomatic_databinding.html
    30       - https://stackoverflow.com/questions/28639294/in-java-how-to-get-name-of-component-which-is-clicked
    31     */
    32     public static void setNamesRecursively(Component rootComponent) {
     25    // There's now a new method in GLI: GUIManager.setNamesRecursively()
     26    // that attempts to recursively call setName() on visible GUI components so that we
     27    // can have easier access to those GUI components when testing here through their names   
     28
     29    /************************ GENERAL *******************************/
     30    public static void switchToPane(String pane) {
    3331   
    3432    }
    35 
    36     /************************ GENERAL *******************************/
    37     public static void switchToPane(String pane) {}
    3833    public static void getMenu(String menu, String subMenu) {}
    3934
Note: See TracChangeset for help on using the changeset viewer.