コード例 #1
0
ファイル: HtmlUtilTest.java プロジェクト: shroggle/Shroggle
 @Test
 public void testContainsIeComments_withNull() {
   Assert.assertFalse(HtmlUtil.containsIeComments(null));
 }
コード例 #2
0
ファイル: HtmlUtilTest.java プロジェクト: shroggle/Shroggle
 @Test
 public void testContainsIeComments_withEmpty() {
   Assert.assertFalse(HtmlUtil.containsIeComments(""));
 }
コード例 #3
0
ファイル: HtmlUtilTest.java プロジェクト: shroggle/Shroggle
 @Test
 public void testContainsIeComments() {
   String oldText =
       "&lt;!--[if !supportLineBreakNewLine]--&gt;fdgsdfgsfdg  <br> &lt;!--[endif]--><!--[if !supportLineBreakNewLine]-->nnnnnnnnnnnnnnnnnn<!--[endif]-->";
   Assert.assertTrue(HtmlUtil.containsIeComments(oldText));
 }