Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis D'Entremont2006-05-03 20:14:11 +0000
committerCurtis D'Entremont2006-05-03 20:14:11 +0000
commit3a1b4505b8e971899e5132452da79c9c2b2e3200 (patch)
treea6e91424a07a544f83a628ac3e9dee107bf1ed14 /org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests
parent18538fedda5c179531e44987e1322ddc4f3d489f (diff)
downloadeclipse.platform.ua-3a1b4505b8e971899e5132452da79c9c2b2e3200.tar.gz
eclipse.platform.ua-3a1b4505b8e971899e5132452da79c9c2b2e3200.tar.xz
eclipse.platform.ua-3a1b4505b8e971899e5132452da79c9c2b2e3200.zip
139563 [CheatSheet] Compile errors against Foundation 1.0: org.eclipse.ui.cheatsheets
Diffstat (limited to 'org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests')
-rw-r--r--org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/composite/TestMarkupParser.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/composite/TestMarkupParser.java b/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/composite/TestMarkupParser.java
index e2f34d44c..c7c639395 100644
--- a/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/composite/TestMarkupParser.java
+++ b/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/composite/TestMarkupParser.java
@@ -57,9 +57,17 @@ public class TestMarkupParser extends TestCase {
public void testParseNestedTags() {
assertEquals("<p>a<b>c</b>d</p>", parse("<root><p>a<b>c</b>d</p></root>"));
}
-
+
public void testEscape() {
assertEquals("a&lt;b&gt;c", parse("<root>a&lt;b&gt;c</root>"));
}
+
+ public void testEscapeAmpersand() {
+ assertEquals("a&amp;c", parse("<root>a&amp;c</root>"));
+ }
+
+ public void testNoEscapeQuotes() {
+ assertEquals("a'b'\"c\"", parse("<root>a'b'\"c\"</root>"));
+ }
}

Back to the top