diff --git a/platform/util/testSrc/com/intellij/util/xmlb/XmlSerializerTest.java b/platform/util/testSrc/com/intellij/util/xmlb/XmlSerializerTest.java index 377abeba5b18..9a3fcb9d7066 100644 --- a/platform/util/testSrc/com/intellij/util/xmlb/XmlSerializerTest.java +++ b/platform/util/testSrc/com/intellij/util/xmlb/XmlSerializerTest.java @@ -495,6 +495,22 @@ public class XmlSerializerTest extends TestCase { "", bean); } + public void testEscapeCharsInTagText() { + BeanWithFieldWithTagAnnotation bean = new BeanWithFieldWithTagAnnotation(); + bean.STRING_V = "a\nb\"<"; + + doSerializerTest( + "\n" + + " a\nb"<\n" + + "", bean); + } + + public void testEscapeCharsInAttributeValue() { + final BeanWithPropertiesBoundToAttribute bean = new BeanWithPropertiesBoundToAttribute(); + bean.name = "a\nb\"<"; + doSerializerTest("", bean); + } + public void testShuffledDeserialize() { BeanWithPublicFields bean = new BeanWithPublicFields(); bean.INT_V = 987;