Index: /home/heikki/workspace/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py
===================================================================
--- /home/heikki/workspace/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py (revision 13101)
+++ /home/heikki/workspace/chandler/tools/QATestScripts/Performance/PerfLargeDataScrollCalendar.py (working copy)
@@ -47,12 +47,13 @@
# Fetch the calendar widget
calendarWidget = App_ns.TimedEvents.widget
(xStart, yStart) = calendarWidget.GetViewStart()
+ print xStart, yStart
# Test Phase: Action (the action we are timing)
-
- logger.Start("Scroll calendar one unit")
- calendarWidget.Scroll(0, yStart + 1)
- calendarWidget.Update() # process only the paint events for this window
+ logger.Start("Scroll calendar one unit") # Actually 25 units
+ for units in xrange(yStart + 1, yStart + 25):
+ calendarWidget.Scroll(0, units)
+ wx.Yield() # Each Yield should result in a single paint to the calendar
logger.Stop()
# Test Phase: Verification
@@ -59,10 +60,11 @@
logger.SetChecked(True)
(xEnd, yEnd) = calendarWidget.GetViewStart()
- if (yEnd == yStart + 1):
+ print xEnd, yEnd, units
+ if (yEnd == units):
logger.ReportPass("On scrolling calendar one unit")
else:
- logger.ReportFailure("On scrolling calendar one unit")
+ logger.ReportFailure("On scrolling calendar one unit, expected y=%d, got y=%d" % (units, yEnd))
logger.Report("Scroll calendar one unit")
finally: