[xwiki-commits] r2393 - xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/xpn/xwiki/wysiwyg
Sergiu Dumitriu
sergiu.dumitriu at gmail.com
Tue Mar 13 15:27:34 CET 2007
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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070313/de3eb537/attachment.htm
More information about the devs
mailing list