writeBugs(pw, CfbBundle.NEW_BUGS, m_delta.getNew());
writeBugs(pw, CfbBundle.FIXED_BUGS, m_delta.getFixed());
writeBugs(pw, CfbBundle.OLD_BUGS, m_delta.getCommon());
+ writeFooter(pw);
}
void writeBugLocations(PrintWriter pw, BugInstance bug)
}
}
+ void writeFooter(PrintWriter pw)
+ {
+ pw.println(" <DIV CLASS=\"Footer\">Report generated by <A HREF=\"https://jaekl.net/cfb/\">CFB</A></DIV>");
+ }
+
void writeHeader(PrintWriter pw)
{
String title = trans(CfbBundle.CFB_REPORT);
pw.println(" body { background-color: #F0F0FF; }");
pw.println(" .CategoryName { text-align: right; }");
pw.println(" .CategoryValue { text-align: left; }");
+ pw.println(" div.Footer { background-color: #0000FF; color: #FFFFFF; font-size: 0.9em; text-align: right; }");
+ pw.println(" div.Footer a:link { color: #FFFFFF }");
pw.println(" .Loc { font-family: monospace; }");
pw.println(" .SectionHead td { background-color: #0000FF; color: #FFFFFF; font-size: 1.25em; font-weight: bold; }");
pw.println(" .Var { font-family: monospace; }");
// The character set UTF-8 should be specified
assertTrue(html.contains("<META CHARSET=\"UTF-8\"/>"));
+
+ // The footer should be present
+ assertTrue(html.contains("DIV CLASS=\"Footer\">Report generated by <A HREF=\"https://jaekl.net/cfb/\">CFB</A></DIV>"));
}
@Before