Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.ua.tests/data/help/search/test10.xhtml4
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AnalyzerTest.java10
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LocaleTest.java18
3 files changed, 27 insertions, 5 deletions
diff --git a/org.eclipse.ua.tests/data/help/search/test10.xhtml b/org.eclipse.ua.tests/data/help/search/test10.xhtml
index 3aab5d765..e428e5965 100644
--- a/org.eclipse.ua.tests/data/help/search/test10.xhtml
+++ b/org.eclipse.ua.tests/data/help/search/test10.xhtml
@@ -16,6 +16,10 @@ redhdsahkdshakjd
German Suffixes "e", "en"
dfskajkfsafaische fdsufdsen
</p>
+<p>
+Period separated words
+usjenfdj.udjeudj.uejdhehj
+</p>
</body>
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AnalyzerTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AnalyzerTest.java
index 10a43125e..d07469784 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AnalyzerTest.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AnalyzerTest.java
@@ -88,15 +88,15 @@ public class AnalyzerTest extends TestCase {
private void checkAnalyzer(String language, String analyzerKind) {
AnalyzerDescriptor an = new AnalyzerDescriptor(language);
-;
+
for (int i = 0; i < supportedLanguages.length; i++) {
String nextLocale = supportedLanguages[i];
- AnalyzerDescriptor expected = new AnalyzerDescriptor(nextLocale)
-;
+ AnalyzerDescriptor expected = new AnalyzerDescriptor(nextLocale);
+ String analyzerClassName = expected.getAnalyzerClassName();
if (nextLocale.equals(analyzerKind)) {
- assertEquals("Comparing " + nextLocale + " to " + language, expected.getAnalyzerClassName(), an.getAnalyzerClassName());
+ assertEquals("Comparing " + nextLocale + " to " + language, analyzerClassName, an.getAnalyzerClassName());
} else {
- assertFalse("Both " + nextLocale + " and " + language + " have value of " + expected.getAnalyzerClassName(), expected.getAnalyzerClassName().equals(an.getAnalyzerClassName()));
+ assertFalse("Both " + nextLocale + " and " + language + " have value of " + analyzerClassName, analyzerClassName.equals(an.getAnalyzerClassName()));
}
}
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LocaleTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LocaleTest.java
index 4dbfc4e20..e35c840f5 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LocaleTest.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LocaleTest.java
@@ -86,5 +86,23 @@ public class LocaleTest extends TestCase {
SearchTestUtils.searchOneLocale("fdsufds", new String[0], "en");
}
+ public void testSearchQualifiedNames_en() {
+ SearchTestUtils.searchOneLocale("usjenfdj.udjeudj.uejdhehj", new String[] { "/org.eclipse.ua.tests/data/help/search/test10.xhtml" },
+ "en" );
+ SearchTestUtils.searchOneLocale("uejdhehj", new String[] { "/org.eclipse.ua.tests/data/help/search/test10.xhtml" },
+ "en" );
+ }
+
+ /*
+ * FAILS - see bug Bug 219928
+ public void testSearchQualifiedNames_de() {
+ SearchTestUtils.searchOneLocale("usjenfdj.udjeudj.uejdhehj", new String[] { "/org.eclipse.ua.tests/data/help/search/test10.xhtml" },
+ "de" );
+ SearchTestUtils.searchOneLocale("uejdhehj", new String[] { "/org.eclipse.ua.tests/data/help/search/test10.xhtml" },
+ "de" );
+ }
+
+ */
+
}

Back to the top