Title: [commits] (dan) [11093] newTestFramework - incorporate a change made to QAUITestAppLib into its new framework equivalent
Revision
11093
Author
dan
Date
2006-07-07 13:04:39 -0700 (Fri, 07 Jul 2006)

Log Message

newTestFramework - incorporate a change made to QAUITestAppLib into its new framework equivalent

Modified Paths

Diff

Modified: trunk/chandler/tools/cats/framework/ChandlerTestLib.py (11092 => 11093)

--- trunk/chandler/tools/cats/framework/ChandlerTestLib.py	2006-07-07 19:46:29 UTC (rev 11092)
+++ trunk/chandler/tools/cats/framework/ChandlerTestLib.py	2006-07-07 20:04:39 UTC (rev 11093)
@@ -1557,10 +1557,13 @@
             #it's a new event
             if not canvasItem :
                 for elem in reversed(self.timedCanvas.widget.canvasItemList):
-                    if elem.isHit(pos):
-                        canvasItem = elem
-                        self.logger.report(True, name="DoubleClickInCalView", comment="On double click in Calendar view checking (event creation)")
-                        break
+                # It's possible for the event to appear a few pixels
+                # lower than pos, if pos is near a dividing line in
+                # the calendar
+                    if elem.isHit(pos) or elem.isHit(pos+(0,5)):
+                            canvasItem = elem
+                            self.logger.report(True, name="DoubleClickInCalView", comment="On double click in Calendar view checking (event creation)")
+                            break
             else:
                 self.logger.report(True, name="DoubleClickInCalView", comment="On double click in Calendar view checking (event selection)")
 




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to