Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2008-02-19 12:22:11 +0000
committerMarkus Schorn2008-02-19 12:22:11 +0000
commit74593bcfb3a406058ea8c3908f57464916f987c9 (patch)
treeeebccf237fc65fa0393630885efefa77bf215436 /core/org.eclipse.cdt.ui.tests
parente9e1c3b1afb64b42bd637543368586e8be61ed37 (diff)
downloadorg.eclipse.cdt-74593bcfb3a406058ea8c3908f57464916f987c9.tar.gz
org.eclipse.cdt-74593bcfb3a406058ea8c3908f57464916f987c9.tar.xz
org.eclipse.cdt-74593bcfb3a406058ea8c3908f57464916f987c9.zip
Improved indexer-tracing, logging info-line after rebuild index, bug 213561.
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/BaseUITestCase.java18
-rw-r--r--core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/typehierarchy/TypeHierarchyAcrossProjectsTest.java3
2 files changed, 16 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/BaseUITestCase.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/BaseUITestCase.java
index 17fafc8eb50..f7fa06fa36f 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/BaseUITestCase.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/BaseUITestCase.java
@@ -63,6 +63,21 @@ public class BaseUITestCase extends BaseTestCase {
public BaseUITestCase(String name) {
super(name);
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.core.testplugin.util.BaseTestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.core.testplugin.util.BaseTestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ runEventQueue(0);
+ super.tearDown();
+ }
/**
* Reads a section in comments form the source of the given class. Fully
@@ -305,9 +320,9 @@ public class BaseUITestCase extends BaseTestCase {
final protected TreeItem checkTreeNode(Tree tree, int i0, int i1, String label) {
TreeItem item= null;
- TreeItem root= tree.getItem(i0);
String itemText= null;
for (int i=0; i<400; i++) {
+ TreeItem root= tree.getItem(i0);
try {
TreeItem firstItem= root.getItem(0);
final String text= firstItem.getText();
@@ -331,7 +346,6 @@ public class BaseUITestCase extends BaseTestCase {
}
catch (SWTException e) {
// widget was disposed, try again.
- root= tree.getItem(i0);
}
runEventQueue(10);
}
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/typehierarchy/TypeHierarchyAcrossProjectsTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/typehierarchy/TypeHierarchyAcrossProjectsTest.java
index 2013296774f..9d5ab791215 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/typehierarchy/TypeHierarchyAcrossProjectsTest.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/typehierarchy/TypeHierarchyAcrossProjectsTest.java
@@ -163,7 +163,4 @@ public class TypeHierarchyAcrossProjectsTest extends TypeHierarchyBaseTest {
assertEquals(0, item4.getItemCount());
checkMethodTable(new String[] {"field4", "method4()"});
}
-
- public void testDummy() {
- }
}

Back to the top