Ignore:
Timestamp:
01/24/14 13:49:01 (11 years ago)
Author:
pharms
Message:
  • introduced common groups when condensing an HTML GUI model
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html-test/src/test/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDcondenseHTMLGUIModelTest.java

    r1286 r1334  
    168168             
    169169        String[] assertionSpec = 
    170             { "/server/doc1/html/body/div", 
     170            { "/server/doc1/html/body/group_common/div", 
    171171              "/server/doc1/html/body/group_doc1/div_1", 
    172172              "/server/doc1/html/body/group_doc2/div_2" }; 
     
    207207             
    208208        String[] assertionSpec = 
    209             { "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/div_1", 
    210               "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/div_2", 
     209            { "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_common/div_1", 
     210              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_common/div_2", 
    211211              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc1/div_3", 
    212212              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc1/div_5", 
    213213              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc2/div_7", 
    214214              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc2/div_8", 
    215               "/server/doc1/html/body/div/group_doc1doc2doc3/div_6", 
     215              "/server/doc1/html/body/div/group_doc1doc2doc3/group_common/div_6", 
    216216              "/server/doc1/html/body/div/group_doc1doc5/div_4", 
    217               "/server/doc1/html/body/div/group_doc3doc5/div_11", 
     217              "/server/doc1/html/body/div/group_doc3doc5/group_common/div_11", 
    218218              "/server/doc1/html/body/div/group_doc3doc5/group_doc3/div_9", 
    219219              "/server/doc1/html/body/div/group_doc3doc5/group_doc3/div_10", 
     
    221221              "/server/doc1/html/body/div/group_doc4/div_13" }; 
    222222         
    223         assertGUIModel(guiModel, assertionSpec); 
    224     } 
    225  
    226     /** 
    227      * <p> 
    228      * TODO: comment 
    229      * </p> 
     223        guiModel.dump(System.out, "UTF-8"); 
     224        assertGUIModel(guiModel, assertionSpec); 
     225    } 
     226 
     227    /** 
    230228     * 
    231      * @param guiSpec 
    232      * @return 
    233      * @throws GUIModelException  
    234      * @throws IllegalArgumentException  
    235229     */ 
    236230    private GUIModel generateGUIModel(String[] guiSpec) 
     
    301295 
    302296    /** 
    303      * <p> 
    304      * TODO: comment 
    305      * </p> 
    306      * 
     297     *  
    307298     */ 
    308299    private void executeCommand() { 
     
    316307 
    317308    /** 
    318      * <p> 
    319      * TODO: comment 
    320      * </p> 
    321309     * 
    322      * @param guiModel 
    323      * @param assertionSpec 
    324310     */ 
    325311    private void assertGUIModel(GUIModel guiModel, String[] assertionSpec) { 
     
    338324 
    339325    /** 
    340      * <p> 
    341      * TODO: comment 
    342      * </p> 
    343326     * 
    344      * @param traverser 
    345      * @param paths 
    346327     */ 
    347328    private void assertPaths(Traverser traverser, String path, List<String> paths) { 
     
    363344 
    364345    /** 
    365      * <p> 
    366      * TODO: comment 
    367      * </p> 
    368346     * 
    369      * @param childElement 
    370      * @return 
    371347     */ 
    372348    private String getPathElement(IGUIElement childElement) { 
Note: See TracChangeset for help on using the changeset viewer.