aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2013-02-23 03:26:57 -0800
committerrsudev <rasch@munin-soft.de>2013-02-23 03:26:57 -0800
commit9ca04d070303afbad0154b2f5d8575a93c942123 (patch)
tree4c7adec4cc1f6f7515d40d6d418bc277abeee486 /tests
parent6cdda77f8bb78440f706dcc637b20b1d3a1a7685 (diff)
parentdeb10abf3c288b7c453626e5126ebc912a24bc03 (diff)
downloadcgeo-9ca04d070303afbad0154b2f5d8575a93c942123.zip
cgeo-9ca04d070303afbad0154b2f5d8575a93c942123.tar.gz
cgeo-9ca04d070303afbad0154b2f5d8575a93c942123.tar.bz2
Merge pull request #2494 from rsudev/6b
Image upload, implements #6
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java b/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java
new file mode 100644
index 0000000..092e45e
--- /dev/null
+++ b/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java
@@ -0,0 +1,11 @@
+package cgeo.geocaching.utils;
+
+import junit.framework.TestCase;
+
+public class HtmlUtilsTest extends TestCase {
+
+ public static void testNonLatinCharConv() {
+ String res = HtmlUtils.convertNonLatinCharactersToHTML("abcΦςቡぢれ");
+ assertEquals("abc&#934;&#962;&#4705;&#12386;&#12428;", res);
+ }
+}