Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2012-10-04 03:36:28 -0400
committerDani Megert2012-10-04 03:36:28 -0400
commit7edcbfb6389bbbdbc14c57d31e0be01640833275 (patch)
tree5ca524c3c96f31dc7d221eb1d3574bf48b80ab67 /org.eclipse.jface.text.tests
parent0caaade5037f0e98b612764d662d2ce729a96d4a (diff)
downloadeclipse.platform.text-7edcbfb6389bbbdbc14c57d31e0be01640833275.tar.gz
eclipse.platform.text-7edcbfb6389bbbdbc14c57d31e0be01640833275.tar.xz
eclipse.platform.text-7edcbfb6389bbbdbc14c57d31e0be01640833275.zip
Fixed bug 391072: HTML2TextReader.entity2Text(String) mangles all but 7v20121004-073628
escape codes
Diffstat (limited to 'org.eclipse.jface.text.tests')
-rw-r--r--org.eclipse.jface.text.tests/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java12
2 files changed, 13 insertions, 1 deletions
diff --git a/org.eclipse.jface.text.tests/META-INF/MANIFEST.MF b/org.eclipse.jface.text.tests/META-INF/MANIFEST.MF
index 22d5fecc2..c0a150b7d 100644
--- a/org.eclipse.jface.text.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.jface.text.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Plugin.name
Bundle-SymbolicName: org.eclipse.jface.text.tests
-Bundle-Version: 3.8.0.qualifier
+Bundle-Version: 3.9.0.qualifier
Bundle-ClassPath: jfacetexttests.jar
Bundle-Vendor: %Plugin.providerName
Bundle-Localization: plugin
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
index ab7163f02..1d85c8b32 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
@@ -124,6 +124,18 @@ public class HTML2TextReaderTest extends TestCase {
verify(string, expected, 0);
}
+ public void testEntity1() throws IOException {
+ String string= "&";
+ String expected= "&";
+ verify(string, expected, 0);
+ }
+
+ public void testEntity2() throws IOException {
+ String string= "&unknown;";
+ String expected= "&unknown;";
+ verify(string, expected, 0);
+ }
+
public void testBug367378() throws IOException {
verify("<head>", "", 0);
verify("<head>some styles</html>", "", 0);

Back to the top