private VisitStatus getVisitStatus(Node node) throws Exception { return getVisitStatus(config(true, true, true), node); }
private VisitStatus getVisitStatus(Node node) throws Exception { return getVisitStatus(config(true, true, true), node); }
private VisitStatus getVisitStatus(Node node) throws Exception { return getVisitStatus(config(true, true, true), node); }
@Test public void visitBypassesComment() throws Exception { Comment comment = doc.createComment("comment"); assertEquals(VisitStatus.BYPASS, getVisitStatus(comment)); }
@Test public void visitBypassesText() throws Exception { Text text = doc.createTextNode("text"); assertEquals(VisitStatus.BYPASS, getVisitStatus(text)); }
@Test public void visitBypassesComment() throws Exception { Comment comment = doc.createComment("comment"); assertEquals(VisitStatus.BYPASS, getVisitStatus(comment)); }
@Test public void visitBypassesComment() throws Exception { Comment comment = doc.createComment("comment"); assertEquals(VisitStatus.BYPASS, getVisitStatus(comment)); }
@Test public void visitBypassesText() throws Exception { Text text = doc.createTextNode("text"); assertEquals(VisitStatus.BYPASS, getVisitStatus(text)); }
@Test public void visitBypassesText() throws Exception { Text text = doc.createTextNode("text"); assertEquals(VisitStatus.BYPASS, getVisitStatus(text)); }
@Test public void visitBypassesNonStyle() throws Exception { Node node = elem("div"); assertEquals(VisitStatus.BYPASS, getVisitStatus(node)); }
@Test public void visitReservesStyleNode() throws Exception { assertEquals(VisitStatus.RESERVE_NODE, getVisitStatus(elem("style"))); }
@Test public void visitReservesStyleNode() throws Exception { assertEquals(VisitStatus.RESERVE_NODE, getVisitStatus(elem("style"))); }
@Test public void visitReservesCasedStyleNode() throws Exception { assertEquals(VisitStatus.RESERVE_NODE, getVisitStatus(elem("sTyLE"))); }
@Test public void visitReservesStyleNode() throws Exception { assertEquals(VisitStatus.RESERVE_NODE, getVisitStatus(elem("style"))); }
@Test public void visitBypassesNonStyle() throws Exception { Node node = elem("div"); assertEquals(VisitStatus.BYPASS, getVisitStatus(node)); }
@Test public void visitBypassesNonStyle() throws Exception { Node node = elem("div"); assertEquals(VisitStatus.BYPASS, getVisitStatus(node)); }
@Test public void visitBypassesStyleWhenStyleTagNotIncluded() throws Exception { assertEquals(VisitStatus.BYPASS, getVisitStatus(config(true, false, true), elem("style"))); }
@Test public void visitBypassesStyleWhenStyleTagNotIncluded() throws Exception { assertEquals(VisitStatus.BYPASS, getVisitStatus(config(true, false, true), elem("style"))); }
@Test public void visitBypassesStyleWhenRewriterOff() throws Exception { assertEquals(VisitStatus.BYPASS, getVisitStatus(config(false, true, true), elem("style"))); }
@Test public void visitBypassesStyleWhenRewriterOff() throws Exception { assertEquals(VisitStatus.BYPASS, getVisitStatus(config(false, true, true), elem("style"))); }