public void testUtf8Hebrew() { SearchTestUtils.searchOneLocale( "\u05D0\u05B7\u05E1\u05B0\u05D8\u05B0\u05E8\u05D5\u05B9\u05E0\u05D5\u05B9\u05DE" + "\u05B0\u05D9\u05B8\u05D4) \u05DC\u05B4\u05E7\u05BC\u05D5\u05BC\u05D9 (\u05D9\u05E8\u05D7 \u05D0\u05D5 \u05E9\u05DE\u05E9", new String[] {"/org.eclipse.ua.tests/data/help/search/testnlUTF8.htm"}, "en"); }
@Test public void testSearchContentProducer() { SearchTestUtils.searchAllLocales( "egrology", new String[] { "/org.eclipse.ua.tests/generated/Generated+Parent/Parent+page+with+searchable+word+egrology+.html" }); }
// try OR'ing with a string from another doc.. should find both @Test public void testSearchOrBothExist() { SearchTestUtils.searchAllLocales( "vkrhjewiwh OR rugnwjfyqj", new String[] { "/org.eclipse.ua.tests/data/help/search/test1.xhtml", "/org.eclipse.ua.tests/data/help/search/test2.xhtml" }); }
// word is in test3.xhtml and also included by test4.xhtml, contributed // into test5.xhtml as an extension, and replaces a paragraph in test6.xhtml. @Test public void testSearchInclusionAndExtension() { SearchTestUtils.searchAllLocales( "fuejnghqjs", new String[] { "/org.eclipse.ua.tests/data/help/search/test3.xhtml", "/org.eclipse.ua.tests/data/help/search/test4.xhtml", "/org.eclipse.ua.tests/data/help/search/test5.xhtml", "/org.eclipse.ua.tests/data/help/search/test6.xhtml" }); }
// try OR'ing with a word that does't exist.. should find same result @Test public void testSearchOrWithNonexistent() { SearchTestUtils.searchAllLocales( "vkrhjewiwh OR this_string_shouldnt_exist_in_any_doc", new String[] {"/org.eclipse.ua.tests/data/help/search/test1.xhtml"}); }
// appears in both filtered and unfiltered parts of test1.xhtml @Test public void testSearchFilteredAndUnfiltered() { SearchTestUtils.searchAllLocales( "vkrhjewiwh", new String[] {"/org.eclipse.ua.tests/data/help/search/test1.xhtml"}); }
public void testIso8859AccentNotIgnored() { SearchTestUtils.searchOneLocale("aguilaxaxcs", new String[0], "en"); }
// Test replacement using ExtensionProvider @Test public void testSearchInReplaceOutUsingProvider() { SearchTestUtils.searchAllLocales( "ausjduehf", new String[] {"/org.eclipse.ua.tests/data/help/search/test6.xhtml"}); }
// first one should be found, but second one only exists in a paragraph that's filtered out - // search should still find @Test public void testSearchAndWithFilter() { SearchTestUtils.searchAllLocales( "vkrhjewiwh AND riehguanil", new String[] {"/org.eclipse.ua.tests/data/help/search/test1.xhtml"}); }
// this doc is listed in TOC several times, using slightly different paths @Test public void testSearchMultipleTocReference() { SearchTestUtils.searchAllLocales( "rqfedajhtg", new String[] {"/org.eclipse.ua.tests/data/help/search/test9.htm"}); }
// only exists in a paragraph in test7.html that should be filtered out // make sure this works for XHTML content inside .html file @Test public void testSearchFilteredXhtmlInHtml() { SearchTestUtils.searchAllLocales( "hugftnhdtg", new String[] {"/org.eclipse.ua.tests/data/help/search/test7.html"}); }
// same as above, but in a section that should never be filtered @Test public void testSearchXhtmlNeverFiltered() { SearchTestUtils.searchAllLocales( "opqmenhfjs", new String[] {"/org.eclipse.ua.tests/data/help/search/test7.html"}); }
// sanity test to make sure it finds things in XHTML content in .html file @Test public void testSearchXhtmlInHtml() { SearchTestUtils.searchAllLocales( "kejehrgaqm", new String[] {"/org.eclipse.ua.tests/data/help/search/test7.html"}); }
public void testUtf8Chinese() { SearchTestUtils.searchOneLocale( "\u8FB2\u66C6\u65B0\u5E74", new String[] {"/org.eclipse.ua.tests/data/help/search/testnlUTF8.htm"}, "en"); }
public void testUtf8Accented() { SearchTestUtils.searchOneLocale( "acfele\u00F3n", new String[] {"/org.eclipse.ua.tests/data/help/search/testnlUTF8.htm"}, "en"); }
@Test public void testSearchMultipleNonadjacentWords() { SearchTestUtils.searchAllLocales( "gsdduvfqnh riehguanil", new String[] {"/org.eclipse.ua.tests/data/help/search/test1.xhtml"}); }
// these two words only appear next to each other in a paragraph that's filtered out - search // should still find it @Test public void testSearchInFiltered() { SearchTestUtils.searchAllLocales( "\"vkrhjewiwh riehguanil\"", new String[] {"/org.eclipse.ua.tests/data/help/search/test1.xhtml"}); }
@Test public void testSearchUnfiltered() { SearchTestUtils.searchAllLocales( "jehcyqpfjs", new String[] {"/org.eclipse.ua.tests/data/help/search/test1.xhtml"}); }
// only exists in paragraph that's filtered out - search should find @Test public void testSearchInFilteredOut() { SearchTestUtils.searchAllLocales( "gsdduvfqnh", new String[] {"/org.eclipse.ua.tests/data/help/search/test1.xhtml"}); }
@Test public void testSearchMultipleNonadjacentExactMatch() { SearchTestUtils.searchAllLocales("\"gsdduvfqnh riehguanil\"", new String[0]); }
// only exists in paragraph in test6.xhtml that's replaced by another one @Test public void testSearchInReplacedOut() { SearchTestUtils.searchAllLocales("bheufnjefa", new String[0] /* no hits*/); }
@Test public void testSearchMultipleAdjacentExactMatch() { SearchTestUtils.searchAllLocales( "\"vkrhjewiwh riehguanil\"", new String[] {"/org.eclipse.ua.tests/data/help/search/test1.xhtml"}); }
// Test replacement using ExtensionProvider @Test public void testSearchInReplacemenTextUsingProvider() { SearchTestUtils.searchAllLocales("bheufnjefb", new String[0] /* no hits*/); }
public void testIso8859() { SearchTestUtils.searchOneLocale( "\u00E1guilaxaxcs", new String[] {"/org.eclipse.ua.tests/data/help/search/testnl8859.htm"}, "en"); }