Changeset 1250 for trunk


Ignore:
Timestamp:
07/04/13 16:22:42 (11 years ago)
Author:
pharms
Message:
  • update to HTML 5 and parsing of key presses
Location:
trunk/autoquest-plugin-html
Files:
2 edited

Legend:

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

    r1247 r1250  
    5959input_button = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLButton 
    6060input_checkbox = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLCheckBox 
     61input_color = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
     62input_date = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
     63input_datetime = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
     64input_datetime-local = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
     65input_email = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    6166input_file = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    6267input_image = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLButton 
     68input_month = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    6369input_number = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLComboBox 
    6470input_password = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    6571input_radio = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLRadioButton 
     72input_range = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    6673input_reset = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLButton 
     74input_search = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    6775input_submit = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLButton 
     76input_tel = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    6877input_text = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    69 input_search = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
     78input_time = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
     79input_url = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
     80input_week = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLTextField 
    7081# input = 
    7182ins = de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLText 
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/eventcore/HTMLEventTypeFactory.java

    r1247 r1250  
    2020import de.ugoe.cs.autoquest.eventcore.IEventType; 
    2121import de.ugoe.cs.autoquest.eventcore.gui.IInteraction; 
     22import de.ugoe.cs.autoquest.eventcore.gui.KeyPressed; 
    2223import de.ugoe.cs.autoquest.eventcore.gui.KeyboardFocusChange; 
    2324import de.ugoe.cs.autoquest.eventcore.gui.MouseButtonInteraction; 
     
    3334import de.ugoe.cs.autoquest.eventcore.guimodel.ITextArea; 
    3435import de.ugoe.cs.autoquest.eventcore.guimodel.ITextField; 
     36import de.ugoe.cs.autoquest.keyboardmaps.VirtualKey; 
    3537import de.ugoe.cs.util.console.Console; 
    3638 
     
    112114            } 
    113115        } 
     116        else if ("onkeydown".equals(eventName)) { 
     117            try { 
     118                int key = Integer.parseInt(eventParameters.get("key")); 
     119                result = new KeyPressed(VirtualKey.valueOf(key)); 
     120            } 
     121            catch (NumberFormatException e) { 
     122                throw new IllegalArgumentException("the key id provided by an " + eventName + 
     123                                                   " is no correct integer"); 
     124            } 
     125        } 
    114126        else if ("onfocus".equals(eventName)) { 
    115127            result = new KeyboardFocusChange(); 
Note: See TracChangeset for help on using the changeset viewer.