Changeset 1911 for trunk/autoquest-htmlmonitor-test/src/test/java/de
- Timestamp:
- 03/11/15 16:53:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor-test/src/test/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorTest.java
r1496 r1911 19 19 import java.io.File; 20 20 import java.util.Collection; 21 import java.util.HashMap; 21 22 import java.util.Iterator; 22 23 import java.util.List; 24 import java.util.Map; 23 25 24 26 import org.apache.http.HttpEntity; … … 425 427 assertEquals(10, nodes.size()); 426 428 429 Map<String, IGUIElement> inputs = new HashMap<>(); 430 427 431 // get input nodes 428 432 for (int i = 0; i < nodes.size(); i++) { … … 438 442 assertFalse(node.isUsed()); 439 443 } 444 445 inputs.put(((HTMLPageElement) node).getHtmlId(), node); 440 446 441 447 assertNotNull(guiModel.getChildren(node)); … … 457 463 assertEquals(10, sequence.size()); 458 464 459 assertEvent(sequence.get(0), 1, MouseClick.class, nodes.get(0), 194, 7);460 assertEvent(sequence.get(1), 2, MouseDoubleClick.class, nodes.get(1), 194, 7);461 assertEvent(sequence.get(2), 3, KeyboardFocusChange.class, nodes.get(2), 0, 0);462 assertEvent(sequence.get(3), 4, MouseClick.class, nodes.get(3), 125, 14);463 assertEvent(sequence.get(4), 5, KeyboardFocusChange.class, nodes.get(4), 0, 0);464 assertEvent(sequence.get(5), 6, KeyboardFocusChange.class, nodes.get(5), 0, 0);465 assertEvent(sequence.get(6), 7, KeyboardFocusChange.class, nodes.get(6), 0, 0);466 assertEvent(sequence.get(7), 8, MouseClick.class, nodes.get(7), 255, 4);465 assertEvent(sequence.get(0), 1, MouseClick.class, inputs.get("input1"), 194, 7); 466 assertEvent(sequence.get(1), 2, MouseDoubleClick.class, inputs.get("input2"), 194, 7); 467 assertEvent(sequence.get(2), 3, KeyboardFocusChange.class, inputs.get("input3"), 0, 0); 468 assertEvent(sequence.get(3), 4, MouseClick.class, inputs.get("input4"), 125, 14); 469 assertEvent(sequence.get(4), 5, KeyboardFocusChange.class, inputs.get("input5"), 0, 0); 470 assertEvent(sequence.get(5), 6, KeyboardFocusChange.class, inputs.get("input6"), 0, 0); 471 assertEvent(sequence.get(6), 7, KeyboardFocusChange.class, inputs.get("input7"), 0, 0); 472 assertEvent(sequence.get(7), 8, MouseClick.class, inputs.get("input8"), 255, 4); 467 473 assertEvent(sequence.get(8), 9, Scroll.class, body, 0, 0); 468 assertEvent(sequence.get(9), 10, MouseClick.class, nodes.get(9), 516, 154);474 assertEvent(sequence.get(9), 10, MouseClick.class, inputs.get("input10"), 516, 154); 469 475 470 476 }
Note: See TracChangeset
for help on using the changeset viewer.