Changeset 1435


Ignore:
Timestamp:
03/06/14 10:28:28 (10 years ago)
Author:
pharms
Message:
  • extended parsing of HTML log files to support further case study
Location:
trunk/autoquest-plugin-html
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/data/guimappings/guimapping-html.txt

    r1263 r1435  
    127127summary = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLText 
    128128sup = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLText 
     129svg = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLCanvas 
    129130 
    130131table = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLPanel 
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogParser.java

    r1416 r1435  
    155155 
    156156            if (parent != null) { 
     157                if (!childrenMustBeConsidered(parent)) { 
     158                    return true; 
     159                } 
     160                 
    157161                IGUIElement document = parent; 
    158162                 
     
    196200 
    197201                specification = new HTMLPageElementSpec 
    198                     ((HTMLDocumentSpec) document.getSpecification(), tagName, htmlId, index); 
     202                    ((HTMLDocumentSpec) document.getSpecification(), 
     203                     tagName.intern(), htmlId == null ? null : htmlId.intern(), index); 
    199204                 
    200205            } 
     
    624629    } 
    625630 
     631    /** 
     632     * <p> 
     633     * checks if the children of a specified parent must be added to the GUI model or not. 
     634     * </p> 
     635     * 
     636     * @param parent the parent tag to check 
     637     *  
     638     * @return true, if the child of the tag must be considered, false else 
     639     */ 
     640    private boolean childrenMustBeConsidered(HTMLGUIElement parent) { 
     641        if (parent instanceof HTMLPageElement) { 
     642            return !"svg".equals(((HTMLPageElement) parent).getTagName()); 
     643        } 
     644        else { 
     645            return true; 
     646        } 
     647    } 
     648 
    626649} 
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDparseDirHTML.java

    r1354 r1435  
    6969                } 
    7070                else { 
    71                     Pattern parseParamPattern = Pattern.compile("-(\\w*)=([\\w=\\[\\]\\(\\)/\\.]*)"); 
     71                    Pattern parseParamPattern = Pattern.compile("-(\\w*)=([\\w=\\[\\]\\(\\)/\\.-]*)"); 
    7272                    Matcher matcher = parseParamPattern.matcher(param); 
    7373                     
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDparseHTML.java

    r1354 r1435  
    6464                } 
    6565                else { 
    66                     Pattern parseParamPattern = Pattern.compile("-(\\w*)=([\\w=\\[\\]\\(\\)/\\.]*)"); 
     66                    Pattern parseParamPattern = Pattern.compile("-(\\w*)=([\\w=\\[\\]\\(\\)/\\.-]*)"); 
    6767                    Matcher matcher = parseParamPattern.matcher(param); 
    6868                     
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/eventcore/HTMLEventTypeFactory.java

    r1354 r1435  
    138138            result = new KeyboardFocusChange(); 
    139139        } 
    140         else if ("onunload".equals(eventName) || "onbeforeunload".equals(eventName) || 
     140        else if ("onload".equals(eventName) || 
     141                 "onunload".equals(eventName) || "onbeforeunload".equals(eventName) || 
    141142                 "onpagehide".equals(eventName) || "onpageshow".equals(eventName) || 
    142143                 "onsubmit".equals(eventName) || "onselect".equals(eventName) || 
    143                  "onreset".equals(eventName)) 
     144                 "onreset".equals(eventName) || "onabort".equals(eventName)) 
    144145        { 
    145146            Console.traceln(Level.FINE, "Ignored event name \"" + eventName + "\""); 
Note: See TracChangeset for help on using the changeset viewer.