incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu...@apache.org
Subject svn commit: r1362376 - in /incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl: Tester.java widgets/VclControl.java
Date Tue, 17 Jul 2012 06:49:36 GMT
Author: liuzhe
Date: Tue Jul 17 06:49:36 2012
New Revision: 1362376

URL: http://svn.apache.org/viewvc?rev=1362376&view=rev
Log:
Speed up keyboard typing.

Modified:
    incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/Tester.java
    incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java

Modified: incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/Tester.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/Tester.java?rev=1362376&r1=1362375&r2=1362376&view=diff
==============================================================================
--- incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/Tester.java (original)
+++ incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/Tester.java Tue
Jul 17 06:49:36 2012
@@ -40,7 +40,7 @@ public class Tester {
 	static {
 		try {
 			robot = new Robot();
-		    robot.setAutoDelay(20);
+		    robot.setAutoDelay(5);
 		    robot.setAutoWaitForIdle(true);
 		} catch (AWTException e) {
 			e.printStackTrace();

Modified: incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java?rev=1362376&r1=1362375&r2=1362376&view=diff
==============================================================================
--- incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java
(original)
+++ incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java
Tue Jul 17 06:49:36 2012
@@ -288,6 +288,11 @@ public class VclControl extends VclWidge
 		inputKeys("");
 	}
 
+	public void typeKeys(String keys) {
+		focus();
+		Tester.typeKeys(keys);
+	}
+	
 	public Rectangle getScreenRectangle() {
 		String ret = (String) invoke(Constant.M_GetScreenRectangle, new Object[] { Boolean.FALSE
});
 		if (ret == null)



Mime
View raw message