Package org.jacoco.report.internal.html

Examples of org.jacoco.report.internal.html.HTMLSupport.findStr()


    assertEquals("sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[2]/@class"));
    assertEquals("b",
        support.findStr(doc, "/html/body/table/thead/tr/td[2]/@id"));
    assertEquals("b1",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[2]/@id"));
    assertEquals("b0",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[2]/@id"));
    assertEquals("b3",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[2]/@id"));
    assertEquals("b2",
View Full Code Here


    assertEquals("b",
        support.findStr(doc, "/html/body/table/thead/tr/td[2]/@id"));
    assertEquals("b1",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[2]/@id"));
    assertEquals("b0",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[2]/@id"));
    assertEquals("b3",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[2]/@id"));
    assertEquals("b2",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[2]/@id"));
  }
View Full Code Here

    assertEquals("b1",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[2]/@id"));
    assertEquals("b0",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[2]/@id"));
    assertEquals("b3",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[2]/@id"));
    assertEquals("b2",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[2]/@id"));
  }

  @Test
View Full Code Here

    assertEquals("b0",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[2]/@id"));
    assertEquals("b3",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[2]/@id"));
    assertEquals("b2",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[2]/@id"));
  }

  @Test
  public void testDefaultSorting() throws Exception {
    final List<ITableItem> items = Arrays.asList(createItem("C", 3),
View Full Code Here

    final HTMLSupport support = new HTMLSupport();
    final Document doc = support.parse(output.getFile("Test.html"));

    assertEquals("down sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@class"));
    assertEquals("A",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]"));
    assertEquals("B",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]"));
    assertEquals("C",
View Full Code Here

    final Document doc = support.parse(output.getFile("Test.html"));

    assertEquals("down sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@class"));
    assertEquals("A",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]"));
    assertEquals("B",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]"));
    assertEquals("C",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]"));
    assertEquals("D",
View Full Code Here

    assertEquals("down sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@class"));
    assertEquals("A",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]"));
    assertEquals("B",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]"));
    assertEquals("C",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]"));
    assertEquals("D",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[1]"));
    assertEquals("E",
View Full Code Here

    assertEquals("A",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]"));
    assertEquals("B",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]"));
    assertEquals("C",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]"));
    assertEquals("D",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[1]"));
    assertEquals("E",
        support.findStr(doc, "/html/body/table/tbody/tr[5]/td[1]"));
  }
View Full Code Here

    assertEquals("B",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]"));
    assertEquals("C",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]"));
    assertEquals("D",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[1]"));
    assertEquals("E",
        support.findStr(doc, "/html/body/table/tbody/tr[5]/td[1]"));
  }

  private ITableItem createItem(final String name, final int count) {
View Full Code Here

    assertEquals("C",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]"));
    assertEquals("D",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[1]"));
    assertEquals("E",
        support.findStr(doc, "/html/body/table/tbody/tr[5]/td[1]"));
  }

  private ITableItem createItem(final String name, final int count) {
    final ICoverageNode node = new CoverageNodeImpl(ElementType.GROUP, name) {
      {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.