/** * Render error reporting information using the (debug) html * @param html * @throws IOException */ public void renderForErrorOn(HtmlCanvas html) throws IOException { html.h3().write(this.getClass().getName())._h3(); html.table(border("1px").cellpadding("4px")); for (String key : attributes.keySet()) { Object value = attributes.get(key); html .tr() .td().write(key)._td() .td().write(value.toString())._td() ._tr(); } html._table(); } @Override
html.td() .a(href("#" + method.getTestClass().getName() + "_" + method.getMethodName())).write(normalizedName)._a()._td(); ArrayList<String> result = new ArrayList<String>(); Method m = method.getConstructorOrMethod().getMethod();
html.b().write("MAY: ")._b().write(may).br(); html._td().td(); int approve = getTotal(apprReq); if(approve > 0) html.b().write("Clarification: ")._b().write("" + clarify).br(); html._td().td(); int auto = getTotal(autoReq); if (auto > 0) html.b().write("Manual: ")._b().write("" + manual).br(); html._td();
@Override public void renderOn(HtmlCanvas html) throws IOException { HtmlCanvas tbody = html .table(class_("table table-striped table-condensed")) .tbody(); int id = 0; for (Pair<File, File> file : files) { tbody .tr() .td(class_("col-md-10")).content(comparator.getSrc().relativize(file.getFirst().toPath()).toString()) .td(class_("col-md-2")) .a(class_("btn btn-primary btn-xs").href("/diff/" + id)).content("diff") .write(" ") .a(class_("btn btn-primary btn-xs").href("/mergely/" + id)).content("mergely") .write(" ") .a(class_("btn btn-primary btn-xs").href("/script/" + id)).content("script") ._td() ._tr(); id++; } tbody ._tbody() ._table(); }
@Override public void renderOn(HtmlCanvas html) throws IOException { HtmlCanvas tbody = html .table(class_("table table-striped table-condensed")) .tbody(); int id = 0; for (Pair<File, File> file : files) { tbody .tr() .td(class_("col-md-10")).content(comparator.getSrc().relativize(file.getFirst().toPath()).toString()) .td(class_("col-md-2")) .a(class_("btn btn-primary btn-xs").href("/diff/" + id)).content("diff") .write(" ") .a(class_("btn btn-primary btn-xs").href("/mergely/" + id)).content("mergely") .write(" ") .a(class_("btn btn-primary btn-xs").href("/script/" + id)).content("script") ._td() ._tr(); id++; } tbody ._tbody() ._table(); }
private void printReqCellResult(int passed, int failed, int skipped) throws IOException { int total = passed + failed + skipped; html.td().b().write(passed + "/" + total)._b(); html.write(" Passed"); html.br().b().write(failed + "/" + total)._b(); html.write(" Failed"); html.br().b().write(skipped + "/" + total)._b(); html.write(" Skipped"); html._td(); }
private void generateSummaryTableStart(Date date, String suiteName) throws IOException { html.tr().th().content("Test Suite Name"); html.th().content("Revision"); html.th().content("Report Date"); html.th().content("Skipped Tests"); html.th().content("MUST Requirements"); html.th().content("SHOULD Requirements"); html.th().content("MAY Requirements"); html._tr(); html.tr(class_("alt")).td().content(suiteName); final String commit = BuildProperties.getRevision(); if (commit == null) { html.td().content("<UNKNOWN>"); } else { html.td().a(href("https://github.com/w3c/ldp-testsuite/commit/" + commit)).content(commit)._td(); } html.td().content(date.toString()); }
html.br().b().em().write("WG Approval Pending")._em()._b(); html._td(); html.td().content(Arrays.toString(method.getGroups())); html.td().content(
generateStatusGraphJSON("overall", approve, pend, extnd, deprctd, clarify); html._span(); html._td(); html.b().write(indirectCases.size())._b().write(" Tests ").a(href(("#indirectCases"))).write("Indirectly Covered")._a(); html._td(); html.li().b().write(unimplmnt[MAY] + " ")._b().write("MAY")._li(); html._ul(); html._ul()._td(); html._tr(); writeImplementationGraph("overall", auto, unimplmnt, client, manual, indirect); html._span(); html._td()._tr(); html._table();