Skip to content

Commit 6cf7b39

Browse files
authored
Merge branch 'eclipse-platform:master' into dnd-tests
2 parents 0ea82c5 + b4ce63d commit 6cf7b39

31 files changed

+205
-83
lines changed

tests/org.eclipse.ui.tests.performance/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: Performance Plug-in
44
Bundle-SymbolicName: org.eclipse.ui.tests.performance;singleton:=true
5-
Bundle-Version: 1.6.500.qualifier
5+
Bundle-Version: 1.6.600.qualifier
66
Require-Bundle: org.eclipse.ui,
77
org.eclipse.core.runtime,
88
org.eclipse.core.tests.harness,

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/CollatorPerformanceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
import java.util.Comparator;
2020

2121
import org.eclipse.jface.util.Policy;
22-
import org.eclipse.ui.tests.performance.BasicPerformanceTest;
22+
import org.eclipse.test.performance.PerformanceTestCaseJunit4;
2323
import org.eclipse.ui.tests.performance.UIPerformanceTestRule;
2424
import org.junit.ClassRule;
2525
import org.junit.Test;
2626

2727
/**
2828
* @since 3.5
2929
*/
30-
public class CollatorPerformanceTest extends BasicPerformanceTest {
30+
public class CollatorPerformanceTest extends PerformanceTestCaseJunit4 {
3131

3232
@ClassRule
3333
public static final UIPerformanceTestRule uiPerformanceTestRule = new UIPerformanceTestRule();

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/ComboViewerRefreshTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package org.eclipse.jface.tests.performance;
1616

1717
import static org.eclipse.ui.tests.harness.util.UITestUtil.processEvents;
18+
import static org.eclipse.ui.tests.performance.UIPerformanceTestUtil.exercise;
1819

1920
import org.eclipse.jface.viewers.ComboViewer;
2021
import org.eclipse.jface.viewers.StructuredViewer;

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/FastTableViewerRefreshTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package org.eclipse.jface.tests.performance;
1515

1616
import static org.eclipse.ui.tests.harness.util.UITestUtil.processEvents;
17+
import static org.eclipse.ui.tests.performance.UIPerformanceTestUtil.exercise;
1718

1819
import org.eclipse.swt.widgets.TableItem;
1920
import org.junit.Test;

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/FastTreeTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package org.eclipse.jface.tests.performance;
1515

1616
import static org.eclipse.ui.tests.harness.util.UITestUtil.processEvents;
17+
import static org.eclipse.ui.tests.performance.UIPerformanceTestUtil.exercise;
1718

1819
import java.util.ArrayList;
1920
import java.util.Collection;

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/FileImageDescriptorTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package org.eclipse.jface.tests.performance;
1616

1717
import static org.eclipse.ui.tests.harness.util.UITestUtil.processEvents;
18+
import static org.eclipse.ui.tests.performance.UIPerformanceTestUtil.exercise;
1819

1920
import java.net.URL;
2021
import java.util.ArrayList;
@@ -25,7 +26,9 @@
2526
import org.eclipse.core.runtime.IPath;
2627
import org.eclipse.jface.resource.ImageDescriptor;
2728
import org.eclipse.swt.graphics.Image;
28-
import org.eclipse.ui.tests.performance.BasicPerformanceTest;
29+
import org.eclipse.test.performance.PerformanceTestCaseJunit4;
30+
import org.eclipse.ui.tests.harness.util.CloseTestWindowsRule;
31+
import org.junit.Rule;
2932
import org.junit.Test;
3033
import org.osgi.framework.Bundle;
3134
import org.osgi.framework.FrameworkUtil;
@@ -34,7 +37,10 @@
3437
* ComboViewerRefreshTest is a test of refreshes of difference size in the combo
3538
* viewer.
3639
*/
37-
public class FileImageDescriptorTest extends BasicPerformanceTest {
40+
public class FileImageDescriptorTest extends PerformanceTestCaseJunit4 {
41+
42+
@Rule
43+
public final CloseTestWindowsRule closeTestWindows = new CloseTestWindowsRule();
3844

3945
protected static final String IMAGES_DIRECTORY = "/icons/imagetests";
4046

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/ListPopulationTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,26 @@
1515
package org.eclipse.jface.tests.performance;
1616

1717
import static org.eclipse.ui.tests.harness.util.UITestUtil.processEvents;
18+
import static org.eclipse.ui.tests.performance.UIPerformanceTestUtil.exercise;
1819

1920
import org.eclipse.swt.SWT;
2021
import org.eclipse.swt.layout.FillLayout;
2122
import org.eclipse.swt.widgets.Display;
2223
import org.eclipse.swt.widgets.List;
2324
import org.eclipse.swt.widgets.Shell;
24-
import org.eclipse.ui.tests.performance.BasicPerformanceTest;
25+
import org.eclipse.test.performance.PerformanceTestCaseJunit4;
26+
import org.eclipse.ui.tests.harness.util.CloseTestWindowsRule;
27+
import org.junit.Rule;
2528
import org.junit.Test;
2629

2730
/**
2831
* The ListPopulationTest is the test for simple
2932
* SWT lists.
3033
*/
31-
public class ListPopulationTest extends BasicPerformanceTest {
34+
public class ListPopulationTest extends PerformanceTestCaseJunit4 {
35+
36+
@Rule
37+
public final CloseTestWindowsRule closeTestWindows = new CloseTestWindowsRule();
3238

3339
List list;
3440

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/ListViewerRefreshTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package org.eclipse.jface.tests.performance;
1616

1717
import static org.eclipse.ui.tests.harness.util.UITestUtil.processEvents;
18+
import static org.eclipse.ui.tests.performance.UIPerformanceTestUtil.exercise;
1819

1920
import org.eclipse.jface.viewers.ListViewer;
2021
import org.eclipse.jface.viewers.StructuredViewer;

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/ProgressMonitorDialogPerformanceTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,24 @@
2020
import org.eclipse.jface.operation.IRunnableWithProgress;
2121
import org.eclipse.swt.widgets.Display;
2222
import org.eclipse.swt.widgets.Shell;
23-
import org.eclipse.ui.tests.performance.BasicPerformanceTest;
23+
import org.eclipse.test.performance.PerformanceTestCaseJunit4;
24+
import org.eclipse.ui.tests.harness.util.CloseTestWindowsRule;
2425
import org.eclipse.ui.tests.performance.UIPerformanceTestRule;
2526
import org.junit.ClassRule;
27+
import org.junit.Rule;
2628
import org.junit.Test;
2729

2830
/**
2931
* @since 3.3
3032
*/
31-
public class ProgressMonitorDialogPerformanceTest extends BasicPerformanceTest {
33+
public class ProgressMonitorDialogPerformanceTest extends PerformanceTestCaseJunit4 {
3234

3335
@ClassRule
3436
public static final UIPerformanceTestRule uiPerformanceTestRule = new UIPerformanceTestRule();
3537

38+
@Rule
39+
public final CloseTestWindowsRule closeTestWindows = new CloseTestWindowsRule();
40+
3641
/**
3742
* Test the time for doing a refresh.
3843
*/

tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance/SWTTreeTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package org.eclipse.jface.tests.performance;
1515

1616
import static org.eclipse.ui.tests.harness.util.UITestUtil.processEvents;
17+
import static org.eclipse.ui.tests.performance.UIPerformanceTestUtil.exercise;
1718

1819
import org.eclipse.core.runtime.CoreException;
1920
import org.eclipse.swt.SWT;
@@ -22,10 +23,15 @@
2223
import org.eclipse.swt.widgets.Shell;
2324
import org.eclipse.swt.widgets.Tree;
2425
import org.eclipse.swt.widgets.TreeItem;
25-
import org.eclipse.ui.tests.performance.BasicPerformanceTest;
26+
import org.eclipse.test.performance.PerformanceTestCaseJunit4;
27+
import org.eclipse.ui.tests.harness.util.CloseTestWindowsRule;
28+
import org.junit.Rule;
2629
import org.junit.Test;
2730

28-
public class SWTTreeTest extends BasicPerformanceTest {
31+
public class SWTTreeTest extends PerformanceTestCaseJunit4 {
32+
33+
@Rule
34+
public final CloseTestWindowsRule closeTestWindows = new CloseTestWindowsRule();
2935

3036
Shell browserShell;
3137

0 commit comments

Comments
 (0)