Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2010-03-17 19:14:35 -0400
committerSusan Franklin2010-03-17 19:14:35 -0400
commit691c718bf93ce8cc97d3ef9ca0c63035bd1cccd5 (patch)
tree68f22e0308266188d38c47cbbdcc361a52b6b819 /bundles/org.eclipse.equinox.p2.tests.ui
parent2afd4aa9a25ade7df69cc54067cd82e5ae772de1 (diff)
downloadrt.equinox.p2-691c718bf93ce8cc97d3ef9ca0c63035bd1cccd5.tar.gz
rt.equinox.p2-691c718bf93ce8cc97d3ef9ca0c63035bd1cccd5.tar.xz
rt.equinox.p2-691c718bf93ce8cc97d3ef9ca0c63035bd1cccd5.zip
Bug 305919 - decouple org.eclipse.equinox.p2.ui from org.eclipse.compare
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.ui')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/InstallationHistoryPageTest.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/InstallationHistoryPageTest.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/InstallationHistoryPageTest.java
index dbaaac69b..d42834fba 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/InstallationHistoryPageTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/dialogs/InstallationHistoryPageTest.java
@@ -14,6 +14,7 @@ import java.lang.reflect.Field;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.jobs.*;
import org.eclipse.equinox.internal.p2.ui.ProvUI;
+import org.eclipse.equinox.internal.p2.ui.sdk.RevertProfilePageWithCompare;
import org.eclipse.equinox.internal.p2.ui.viewers.ProvElementContentProvider;
import org.eclipse.equinox.p2.tests.ui.AbstractProvisioningUITest;
import org.eclipse.equinox.p2.ui.RevertProfilePage;
@@ -47,6 +48,21 @@ public class InstallationHistoryPageTest extends AbstractProvisioningUITest {
}
}
+ class TestDialog2 extends Dialog {
+ RevertProfilePageWithCompare page;
+
+ TestDialog2() {
+ super(ProvUI.getDefaultParentShell());
+ }
+
+ protected Control createDialogArea(Composite parent) {
+ Composite composite = new Composite(parent, SWT.NONE);
+ page = new RevertProfilePageWithCompare();
+ page.createControl(composite);
+ return composite;
+ }
+ }
+
/**
* Hammers the background fetch
*/
@@ -109,6 +125,16 @@ public class InstallationHistoryPageTest extends AbstractProvisioningUITest {
dialog.setBlockOnOpen(false);
dialog.open();
dialog.close();
+ }
+ /**
+ * Tests the dialog - just launches it for now
+ */
+ public void testDialogWithCompare() {
+ TestDialog2 dialog = new TestDialog2();
+ dialog.setBlockOnOpen(false);
+ dialog.open();
+
+ dialog.close();
}
}

Back to the top