Hi,
I'd say you should use lorem ipsum text, instead of real phrases.
And maybe this should be a general policy for all tests.
On 3/13/07, Christian Gmeiner <austriancoder(a)users.forge.objectweb.org>
wrote:
Author: austriancoder
Date: 2007-03-13 15:01:43 +0100 (Tue, 13 Mar 2007)
New Revision: 2393
Modified:
xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/xpn/xwiki/wysiwyg/ConverterTest.java
Log:
* small updates
Modified:
xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/xpn/xwiki/wysiwyg/ConverterTest.java
===================================================================
---
xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/xpn/xwiki/wysiwyg/ConverterTest.java
2007-03-13 14:01:13 UTC (rev 2392)
+++
xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/xpn/xwiki/wysiwyg/ConverterTest.java
2007-03-13 14:01:43 UTC (rev 2393)
@@ -14,7 +14,10 @@
assertEquals("__underline text__", result);
result =
Converter.convert("<strong>Hello</strong><em>dude</em><u>!</u>",
false);
- assertEquals("*Hello*~~dude~~__!__", result);
+ assertEquals("*Hello*~~dude~~__!__", result);
+
+ result =
Converter.convert("SomeFillText<strong>Hello</strong>SomeFillText<em>dude</em><u>!</u>SomeFillText",
false);
+
assertEquals("SomeFillText*Hello*SomeFillText~~dude~~__!__SomeFillText",
result);
}
public void testSubTagConversion()
@@ -23,6 +26,9 @@
assertEquals("*~~text~~*", result);
result =
Converter.convert("<strong><em>t<u>ex</u>t</em></strong>",
false);
- assertEquals("*~~t__ex__t~~*", result);
+ assertEquals("*~~t__ex__t~~*", result);
+
+ result = Converter.convert("<em>Lets hope this one
<strong>works
<u>too</u></strong>, and if not...</em>", false);
+ assertEquals("~~Lets hope this one *works __too__*, and if
not...~~", result);
}
}
--
http://purl.org/net/sergiu