- Revision
- 11444
- Author
- dan
- Date
- 2006-08-17 16:48:19 -0700 (Thu, 17 Aug 2006)
Log Message
Fix TestTableSelection to work on mac's and enable it in the FunctionalTestSuite
Modified Paths
Diff
Modified: trunk/chandler/tools/cats/Functional/FunctionalTestSuite.py (11443 => 11444)
--- trunk/chandler/tools/cats/Functional/FunctionalTestSuite.py 2006-08-17 23:44:17 UTC (rev 11443) +++ trunk/chandler/tools/cats/Functional/FunctionalTestSuite.py 2006-08-17 23:48:19 UTC (rev 11444) @@ -71,7 +71,7 @@ ], 'mac':[ - ("TestTableSelection","TestTableSelection"), # until tested on mac + ], 'windows':[
Modified: trunk/chandler/tools/cats/Functional/TestTableSelection.py (11443 => 11444)
--- trunk/chandler/tools/cats/Functional/TestTableSelection.py 2006-08-17 23:44:17 UTC (rev 11443) +++ trunk/chandler/tools/cats/Functional/TestTableSelection.py 2006-08-17 23:48:19 UTC (rev 11444) @@ -14,6 +14,7 @@ import tools.cats.framework.ChandlerTestLib as QAUITestAppLib from tools.cats.framework.ChandlerTestCase import ChandlerTestCase +import sys class TestTableSelection(ChandlerTestCase): @@ -54,10 +55,17 @@ self.scripting.User.emulate_click(dashboard, 100, rowsToSelect[0]*rowHeight + rowMiddle) # select 3 more rows, with control key down for multi selection - for row in rowsToSelect[1:]: - self.scripting.User.emulate_click(dashboard, 100, - rowHeight*row + rowMiddle, - control=True) + # except for mac which wants the meta key held down + if sys.platform == 'darwin': + for row in rowsToSelect[1:]: + self.scripting.User.emulate_click(dashboard, 100, + rowHeight*row + rowMiddle, + meta=True) + else: + for row in rowsToSelect[1:]: + self.scripting.User.emulate_click(dashboard, 100, + rowHeight*row + rowMiddle, + control=True) self.logger.endAction(True) # verification
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
