Package org.jacoco.report.internal.html

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


    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

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

    // language
    assertEquals("en", support.findStr(doc, "/html/@lang"));

    // style sheet
    assertEquals(".resources/report.css", support.findStr(doc,
        "/html/head/link[@rel='stylesheet']/@href"));
View Full Code Here

    // language
    assertEquals("en", support.findStr(doc, "/html/@lang"));

    // style sheet
    assertEquals(".resources/report.css", support.findStr(doc,
        "/html/head/link[@rel='stylesheet']/@href"));

    // bread crumb
    assertEquals("Report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/text()"));
View Full Code Here

    // style sheet
    assertEquals(".resources/report.css", support.findStr(doc,
        "/html/head/link[@rel='stylesheet']/@href"));

    // bread crumb
    assertEquals("Report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/text()"));
    assertEquals("Report.html", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@href"));
    assertEquals("el_report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@class"));
View Full Code Here

        "/html/head/link[@rel='stylesheet']/@href"));

    // bread crumb
    assertEquals("Report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/text()"));
    assertEquals("Report.html", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@href"));
    assertEquals("el_report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@class"));
    assertEquals("Test", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/text()"));
View Full Code Here

    // bread crumb
    assertEquals("Report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/text()"));
    assertEquals("Report.html", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@href"));
    assertEquals("el_report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@class"));
    assertEquals("Test", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/text()"));
    assertEquals("el_group", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/@class"));
View Full Code Here

        "/html/body/div[@class='breadcrumb']/a[1]/text()"));
    assertEquals("Report.html", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@href"));
    assertEquals("el_report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@class"));
    assertEquals("Test", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/text()"));
    assertEquals("el_group", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/@class"));

    // Header
View Full Code Here

        "/html/body/div[@class='breadcrumb']/a[1]/@href"));
    assertEquals("el_report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@class"));
    assertEquals("Test", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/text()"));
    assertEquals("el_group", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/@class"));

    // Header
    assertEquals("Test", support.findStr(doc, "/html/body/h1/text()"));
View Full Code Here

        "/html/body/div[@class='breadcrumb']/span[2]/text()"));
    assertEquals("el_group", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/@class"));

    // Header
    assertEquals("Test", support.findStr(doc, "/html/body/h1/text()"));

    // Content
    assertEquals("Hello Test", support.findStr(doc,
        "/html/body/div[@class='testcontent']/text()"));
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.