diff options
author | Chris Goldthorpe | 2010-10-20 17:34:16 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2010-10-20 17:34:16 +0000 |
commit | cca0bad2b0306df4e73a7b60fa322c0f259fbc5d (patch) | |
tree | ad5bdf4ff0f627ce95a6fb3bc53417bbfb58c89d /org.eclipse.ua.tests/help | |
parent | 0ef7ded23cd61062851a6bde6bd1b7743f05a895 (diff) | |
download | eclipse.platform.ua-cca0bad2b0306df4e73a7b60fa322c0f259fbc5d.tar.gz eclipse.platform.ua-cca0bad2b0306df4e73a7b60fa322c0f259fbc5d.tar.xz eclipse.platform.ua-cca0bad2b0306df4e73a7b60fa322c0f259fbc5d.zip |
Bug 328267 - [Help][Search] meta tag "description" does not contribute to search index
Diffstat (limited to 'org.eclipse.ua.tests/help')
-rw-r--r-- | org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java index 57f191662..0df50ecd1 100644 --- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java +++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009 IBM Corporation and others. + * Copyright (c) 2009, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -54,6 +54,14 @@ public class MetaKeywords extends TestCase { assertEquals("XHTML Meta description", hits[0].getDescription()); } + public void testSearchDescriptionInHtml() { + SearchTestUtils.searchAllLocales("basbanba", new String[] { "/org.eclipse.ua.tests/data/help/search/extraDir/testMeta2.htm" }); + } + + public void testSearchDescriptionInXhtml() { + SearchTestUtils.searchAllLocales("mfjrudjesm", new String[] { "/org.eclipse.ua.tests/data/help/search/extraDir/testMeta2.xhtml" }); + } + private SearchHit[] getResultDescriptions(String searchWord, String nl) { ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList(), nl); SearchResults collector = new SearchResults(null, 500, nl); |