Exemplo n.º 1
0
 @Test
 public void testThatTagNodeIsNotSelfclosingIfTheTagIsNotSelfclosing() {
   template.setMode(Jade4J.Mode.HTML);
   for (int i = 0; i < notSelfClosing.length; i++) {
     tagNode.setName(notSelfClosing[i]);
     assertFalse(tagNode.isTerse(template));
   }
 }
Exemplo n.º 2
0
 @Test
 public void testThatTagNodeIsNotTerseIfTempalteSettingIsNotTerse() {
   template.setMode(Jade4J.Mode.XHTML);
   for (int i = 0; i < selfClosing.length; i++) {
     tagNode.setName(selfClosing[i]);
     assertFalse(tagNode.isTerse(template));
   }
 }
Exemplo n.º 3
0
 @Test
 public void testThatTagNodeIsTerse() {
   template.setMode(Jade4J.Mode.HTML);
   for (int i = 0; i < selfClosing.length; i++) {
     tagNode.setName(selfClosing[i]);
     assertTrue(tagNode.isTerse(template));
   }
 }