Changeset 943


Ignore:
Timestamp:
10/26/12 09:13:34 (12 years ago)
Author:
pharms
Message:
  • added support for providing horizontal scroll position
Location:
trunk/autoquest-htmlmonitor-test/src/test/java/de/ugoe/cs/autoquest/htmlmonitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor-test/src/test/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServerTest.java

    r927 r943  
    203203            "        \"path\":\"/html[0]/body(id=gsr)\"," + 
    204204            "        \"eventType\":\"onscroll\"," + 
    205             "        \"scrollPosition\":\"165\"" + 
     205            "        \"scrollPosition\": [\"23\", \"567\"]" + 
    206206            "      }," + 
    207207            "      {" + 
     
    252252            if ((i == 8)) { 
    253253                assertNotNull("event " + i, events[i].getScrollPosition()); 
    254                 assertEquals("event " + i, new Integer(165), events[i].getScrollPosition()); 
     254                assertArrayEquals 
     255                    ("event " + i, new Integer[] { 23, 567 }, events[i].getScrollPosition()); 
    255256            } 
    256257            else { 
  • trunk/autoquest-htmlmonitor-test/src/test/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorTest.java

    r927 r943  
    198198            "        \"path\":\"/html[0]/body(id=gsr)\"," + 
    199199            "        \"eventType\":\"onscroll\"," + 
    200             "        \"scrollPosition\":\"165\"" + 
     200            "        \"scrollPosition\": [\"23\", \"567\"]" + 
    201201            "      }," + 
    202202            "      {" + 
     
    237237                         "onclick", "/html[0]/body(id=gsr)/input(id=input8)", "255,4"); 
    238238        assertLogMessage(logEntries[8], clientId, "9", "Title", "http://host/path", "Agent", 
    239                          "onscroll", "/html[0]/body(id=gsr)", "165"); 
     239                         "onscroll", "/html[0]/body(id=gsr)", "23,567"); 
    240240        assertLogMessage(logEntries[9], clientId, "10", "Title", "http://host/path", "Agent", 
    241241                         "onclick", "/html[0]/body(id=gsr)/input(id=input10)", "516,154"); 
Note: See TracChangeset for help on using the changeset viewer.