Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRolf Theunissen2020-01-23 12:13:28 +0000
committerRolf Theunissen2020-02-14 10:23:26 +0000
commit5a1a1ffcd1ee079daff295c47e8a4af1db1d4316 (patch)
tree38ac01639c9d25ef2593443c7bd3205a37304b6f /org.eclipse.ua.tests/help
parent9aa232a94460f4a5cbd458a1590dec131b9307d9 (diff)
downloadeclipse.platform.ua-5a1a1ffcd1ee079daff295c47e8a4af1db1d4316.tar.gz
eclipse.platform.ua-5a1a1ffcd1ee079daff295c47e8a4af1db1d4316.tar.xz
eclipse.platform.ua-5a1a1ffcd1ee079daff295c47e8a4af1db1d4316.zip
Bug 559396 - Search engine doesn't recognize html5 meta charset
attribute Change-Id: Ia388fef1de406551052bb05423dda99d8c957157 Signed-off-by: Rolf Theunissen <rolf.theunissen@gmail.com>
Diffstat (limited to 'org.eclipse.ua.tests/help')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/EncodedCharacterSearch.java23
1 files changed, 17 insertions, 6 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/EncodedCharacterSearch.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/EncodedCharacterSearch.java
index a2b550832..29171e1a6 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/EncodedCharacterSearch.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/EncodedCharacterSearch.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2016 IBM Corporation and others.
+ * Copyright (c) 2009, 2020 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -18,7 +18,10 @@ import org.junit.Test;
public class EncodedCharacterSearch {
@Test
public void testIso8859() {
- SearchTestUtils.searchOneLocale("\u00E1guilaxaxcs", new String[] {"/org.eclipse.ua.tests/data/help/search/testnl8859.htm" }, "en");
+ SearchTestUtils.searchOneLocale("\u00E1guilaxaxcs",
+ new String[] { "/org.eclipse.ua.tests/data/help/search/testnl8859.htm",
+ "/org.eclipse.ua.tests/data/help/search/testnl8859_html5.html" },
+ "en");
}
@Test
@@ -28,19 +31,27 @@ public class EncodedCharacterSearch {
@Test
public void testUtf8Accented() {
- SearchTestUtils.searchOneLocale("acfele\u00F3n", new String[] {"/org.eclipse.ua.tests/data/help/search/testnlUTF8.htm" }, "en");
+ SearchTestUtils.searchOneLocale("acfele\u00F3n",
+ new String[] { "/org.eclipse.ua.tests/data/help/search/testnlUTF8.htm",
+ "/org.eclipse.ua.tests/data/help/search/testnlUTF8_html5.html" },
+ "en");
}
@Test
public void testUtf8Chinese() {
- SearchTestUtils.searchOneLocale("\u8FB2\u66C6\u65B0\u5E74", new String[] {"/org.eclipse.ua.tests/data/help/search/testnlUTF8.htm" }, "en");
+ SearchTestUtils.searchOneLocale("\u8FB2\u66C6\u65B0\u5E74",
+ new String[] { "/org.eclipse.ua.tests/data/help/search/testnlUTF8.htm",
+ "/org.eclipse.ua.tests/data/help/search/testnlUTF8_html5.html" },
+ "en");
}
@Test
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");
+ + "\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",
+ "/org.eclipse.ua.tests/data/help/search/testnlUTF8_html5.html" },
+ "en");
}
-
}

Back to the top