[Hildon-test-aut-commits] r641 - trunk/dogtail/dogtail

aseems at garage.maemo.org aseems at garage.maemo.org
Thu Nov 29 14:33:47 EET 2007


Author: aseems
Date: 2007-11-29 14:33:46 +0200 (Thu, 29 Nov 2007)
New Revision: 641

Modified:
   trunk/dogtail/dogtail/rocknroleN800.py
Log:
 added devicesyms for 'Fn' key and support to change the sleep between hardkeys during automation testsuite for any application

Modified: trunk/dogtail/dogtail/rocknroleN800.py
===================================================================
--- trunk/dogtail/dogtail/rocknroleN800.py	2007-11-29 10:30:56 UTC (rev 640)
+++ trunk/dogtail/dogtail/rocknroleN800.py	2007-11-29 12:33:46 UTC (rev 641)
@@ -6,7 +6,7 @@
 #########################################################################################
 #   rocknroleN800.py - rocknrole utility for N800 
 #   Copyright (C) 2007 Nokia Corporation
-#
+#   
 #   Authors :  Anand Subramanian, Shivakumar Manishankar
 #   Contact :  Attila Domokos <attila.domokos at nokia.com>
 #
@@ -122,10 +122,7 @@
         '7' : 0xffb7,
         '8' : 0xffb8,
         '9' : 0xffb9,
-        'linehome' : 0xff50,
-        'lineend' : 0xff57,
-        'line_start' : 0xff50,
-        'line_end' : 0xff57
+        'fn' : 0xfe03
 }
 
 '''
@@ -133,6 +130,8 @@
 }
 '''
 
+hardkeySleep = 0.1
+
 if isdevice():
     def hardkey(key, rep=1) :
         for i in range(rep) : atspi.EventGenerator().generateKeyboardEvent(devicesyms[key.lower()], "", atspi.SPI_KEY_SYM)
@@ -146,7 +145,7 @@
             except IndexError : pass
             for i in range(rep) :
                 atspi.EventGenerator().generateKeyboardEvent(devicesyms[key.lower()], "", atspi.SPI_KEY_SYM)
-                sleep(0.1)
+                sleep(hardkeySleep)
 
 # else : # sbox
 # TODO put in dict for sbox later and then matching hardkey definition in else part below.



More information about the Hildon-test-aut-commits mailing list