incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu...@apache.org
Subject svn commit: r1391753 - in /incubator/ooo/trunk/test: testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java testgui/data/pvt/complex_400p.docx testgui/source/pvt/gui/Benchmark.java
Date Sat, 29 Sep 2012 05:24:21 GMT
Author: liuzhe
Date: Sat Sep 29 05:24:20 2012
New Revision: 1391753

URL: http://svn.apache.org/viewvc?rev=1391753&view=rev
Log:
Add cases in GUI PVT

Modified:
    incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java
    incubator/ooo/trunk/test/testgui/data/pvt/complex_400p.docx
    incubator/ooo/trunk/test/testgui/source/pvt/gui/Benchmark.java

Modified: incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java?rev=1391753&r1=1391752&r2=1391753&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java
(original)
+++ incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/vcl/widgets/VclControl.java
Sat Sep 29 05:24:20 2012
@@ -303,6 +303,7 @@ public class VclControl extends VclWidge
 		Rectangle rect = getScreenRectangle();
 		if (rect == null)
 			throw new RuntimeException(this + " - screen rectangle could not be computed! Maybe it
is not showing!");
+		Tester.sleep(0.1);
 		return rect;
 	}
 

Modified: incubator/ooo/trunk/test/testgui/data/pvt/complex_400p.docx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testgui/data/pvt/complex_400p.docx?rev=1391753&r1=1391752&r2=1391753&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/ooo/trunk/test/testgui/source/pvt/gui/Benchmark.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testgui/source/pvt/gui/Benchmark.java?rev=1391753&r1=1391752&r2=1391753&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testgui/source/pvt/gui/Benchmark.java (original)
+++ incubator/ooo/trunk/test/testgui/source/pvt/gui/Benchmark.java Sat Sep 29 05:24:20 2012
@@ -58,7 +58,7 @@ public class Benchmark {
 	
 	private static final double INTERVAL = 0.1; 
 	
-	private static int repeat = 2;
+	private static int repeat = 8;
 	
 	private int i  = 0;
 	
@@ -69,7 +69,7 @@ public class Benchmark {
 	@BeforeClass
 	public static void beforeClass() throws Exception {
 		OpenOffice.killAll();
-		result = new DataSheet(getFile("output/" + Benchmark.class.getName() + ".xml"), true);
+		result = new DataSheet(getFile("output/" + Benchmark.class.getName() + ".xml"));
 		result.addRow("data", "Scenario", "No", "Consumed Time", "Memory(VSZ)", "Memory(RSS)",
"Handles(Windows Only)");
 	}
 	
@@ -260,7 +260,7 @@ public class Benchmark {
 	
 	@Test
 	public void loadFinishComplexDOCX() {
-		loadFinish("pvt/complex_400p.docx", "Page 1 / 4[0-9]{2}");
+		loadFinish("pvt/complex_400p.docx", "Page 1 / 3[2-9]{2}");
 	}
 	
 	@Test
@@ -270,7 +270,7 @@ public class Benchmark {
 	
 	@Test
 	public void loadFinishComplexODS() {
-		loadFinish("pvt/complex_19s.odt", "Sheet 8 / 19");
+		loadFinish("pvt/complex_19s.ods", "Sheet 8 / 19");
 	}
 	
 	@Test
@@ -414,7 +414,7 @@ public class Benchmark {
 			}.waitForTrue("", 120, 1);
 			sleep(2);
 			insertPicture(picture);
-			sleep(3);
+			sleep(5);
 			assertEquals("File is modified", "*", statusBar.getItemText(saveIndicatorIndex));
 			app.dispatch(".uno:Save");
 			if (alienFormat) {



Mime
View raw message