From cd98685286279429a46f16bc3945a080f8915851 Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Wed, 11 Dec 2013 14:56:52 +0100 Subject: [PATCH] OO-903: revert filter the control characters as it is too dangerous --- .../flexible/impl/elements/AbstractTextElementTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/olat/core/gui/components/form/flexible/impl/elements/AbstractTextElementTest.java b/src/test/java/org/olat/core/gui/components/form/flexible/impl/elements/AbstractTextElementTest.java index 931875e18e9..5b1557243ee 100644 --- a/src/test/java/org/olat/core/gui/components/form/flexible/impl/elements/AbstractTextElementTest.java +++ b/src/test/java/org/olat/core/gui/components/form/flexible/impl/elements/AbstractTextElementTest.java @@ -21,6 +21,7 @@ package org.olat.core.gui.components.form.flexible.impl.elements; import junit.framework.Assert; +import org.junit.Ignore; import org.junit.Test; import org.olat.core.gui.UserRequest; import org.olat.core.gui.components.Component; @@ -34,7 +35,7 @@ import org.olat.test.OlatTestCase; */ public class AbstractTextElementTest extends OlatTestCase { - @Test + @Test @Ignore public void filterPrintControlCharacter() { TestTextElement element = new TestTextElement("test"); element.setValue("Hello world"); @@ -60,6 +61,10 @@ public class AbstractTextElementTest extends OlatTestCase { element.setValue("Hello\u30b0 world"); Assert.assertEquals("Umlaut test", "Hello\u30b0 world", element.getValue()); + //it's a return + element.setValue("Hello\n world"); + Assert.assertEquals("Umlaut test", "Hello\n world", element.getValue()); + //it's a unicode emoticons element.setValue("Hello\u1F605 world"); Assert.assertEquals("Umlaut test", "Hello\u1F605 world", element.getValue()); -- GitLab