removed tests that are sensitive to content types contributed by other plugins
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/perf/ContentTypePerformanceTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/perf/ContentTypePerformanceTest.java
index 895c1d7..96604c7 100644
--- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/perf/ContentTypePerformanceTest.java
+++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/perf/ContentTypePerformanceTest.java
@@ -131,8 +131,6 @@
TestSuite singleRun = new PerformanceSessionTestSuite(PI_RUNTIME_TESTS, 1, "singleSessionTests");
singleRun.addTest(new ContentTypePerformanceTest("testContentMatching"));
- singleRun.addTest(new ContentTypePerformanceTest("testContentTXTMatching"));
- singleRun.addTest(new ContentTypePerformanceTest("testContentXMLMatching"));
singleRun.addTest(new ContentTypePerformanceTest("testNameMatching"));
singleRun.addTest(new ContentTypePerformanceTest("testIsKindOf"));
suite.addTest(singleRun);
@@ -172,25 +170,6 @@
return count;
}
- /** Tests how much the size of the catalog affects the performance of content type matching by content analysis and name*/
- public void doTestContentMatching(final String name, final String contents, int outer, int inner) {
- // warm up preference service
- loadPreferences();
- // warm up content type registry
- final IContentTypeManager manager = loadContentTypeManager();
- loadDescribers();
- loadChildren();
- new PerformanceTestRunner() {
- protected void test() {
- try {
- manager.findContentTypesFor(getContents(contents), name);
- } catch (IOException e) {
- fail("2.0", e);
- }
- }
- }.run(this, outer, inner);
- }
-
private Bundle installContentTypes(String tag, int numberOfLevels, int nodesPerLevel) {
TestRegistryChangeListener listener = new TestRegistryChangeListener(Platform.PI_RUNTIME, ContentTypeBuilder.PT_CONTENTTYPES, null, null);
listener.register();
@@ -300,14 +279,6 @@
}.run(this, 10, 2);
}
- public void testContentTXTMatching() {
- doTestContentMatching("foo.txt", getRandomString(), 10, 40000);
- }
-
- public void testContentXMLMatching() {
- doTestContentMatching("foo.xml", getRandomString(), 10, 300);
- }
-
public void testDoSetUp() {
installContentTypes("1.0", NUMBER_OF_LEVELS, ELEMENTS_PER_LEVEL);
}