Skip to content
Snippets Groups Projects
Commit cd986852 authored by srosse's avatar srosse
Browse files

OO-903: revert filter the control characters as it is too dangerous

parent 79b7a25f
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ package org.olat.core.gui.components.form.flexible.impl.elements; ...@@ -21,6 +21,7 @@ package org.olat.core.gui.components.form.flexible.impl.elements;
import junit.framework.Assert; import junit.framework.Assert;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.olat.core.gui.UserRequest; import org.olat.core.gui.UserRequest;
import org.olat.core.gui.components.Component; import org.olat.core.gui.components.Component;
...@@ -34,7 +35,7 @@ import org.olat.test.OlatTestCase; ...@@ -34,7 +35,7 @@ import org.olat.test.OlatTestCase;
*/ */
public class AbstractTextElementTest extends OlatTestCase { public class AbstractTextElementTest extends OlatTestCase {
@Test @Test @Ignore
public void filterPrintControlCharacter() { public void filterPrintControlCharacter() {
TestTextElement element = new TestTextElement("test"); TestTextElement element = new TestTextElement("test");
element.setValue("Hello world"); element.setValue("Hello world");
...@@ -60,6 +61,10 @@ public class AbstractTextElementTest extends OlatTestCase { ...@@ -60,6 +61,10 @@ public class AbstractTextElementTest extends OlatTestCase {
element.setValue("Hello\u30b0 world"); element.setValue("Hello\u30b0 world");
Assert.assertEquals("Umlaut test", "Hello\u30b0 world", element.getValue()); 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 //it's a unicode emoticons
element.setValue("Hello\u1F605 world"); element.setValue("Hello\u1F605 world");
Assert.assertEquals("Umlaut test", "Hello\u1F605 world", element.getValue()); Assert.assertEquals("Umlaut test", "Hello\u1F605 world", element.getValue());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment