Beispiel #1
0
 @Test
 public void testContainsIeComments_withNull() {
   Assert.assertFalse(HtmlUtil.containsIeComments(null));
 }
Beispiel #2
0
 @Test
 public void testContainsIeComments_withEmpty() {
   Assert.assertFalse(HtmlUtil.containsIeComments(""));
 }
Beispiel #3
0
 @Test
 public void testContainsIeComments() {
   String oldText =
       "&lt;!--[if !supportLineBreakNewLine]--&gt;fdgsdfgsfdg  <br> &lt;!--[endif]--><!--[if !supportLineBreakNewLine]-->nnnnnnnnnnnnnnnnnn<!--[endif]-->";
   Assert.assertTrue(HtmlUtil.containsIeComments(oldText));
 }