| 65 | } |
| 66 | |
| 67 | void |
| 68 | header(ostream& os, string name) |
| 69 | { |
| 70 | if (!name.empty()) |
| 71 | name += " "; |
| 72 | name = escape(name); |
| 73 | os << |
| 74 | "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" |
| 75 | "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n" |
| 76 | "<head>\n" |
| 77 | " <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n" |
| 78 | " <meta name=\"generator\" content=\"CppTest - http://cpptest.sourceforge.net\" />\n" |
| 79 | " \n" |
| 80 | " <title>" << name << "Unit Tests Results</title>\n" |
| 81 | " \n" |
| 82 | " <style type=\"text/css\" media=\"screen\">\n" |
| 83 | " <!--\n" |
| 84 | " hr {\n" |
| 85 | " width: 100%;\n" |
| 86 | " border-width: 0px;\n" |
| 87 | " height: 1px;\n" |
| 88 | " color: #cccccc;\n" |
| 89 | " background-color: #cccccc;\n" |
| 90 | " padding: 0px;\n" |
| 91 | " }\n" |
| 92 | " \n" |
| 93 | " table {\n" |
| 94 | " width:100%;\n" |
| 95 | " border-collapse:separate;\n" |
| 96 | " border-spacing: 2px;\n" |
| 97 | " border:0px;\n" |
| 98 | " }\n" |
| 99 | " tr {\n" |
| 100 | " margin:0px;\n" |
| 101 | " padding:0px;\n" |
| 102 | " }\n" |
| 103 | " td {\n" |
| 104 | " margin:0px;\n" |
| 105 | " padding:1px;\n" |
| 106 | " }\n" |
| 107 | " .table_summary {\n" |
| 108 | " }\n" |
| 109 | " .table_suites {\n" |
| 110 | " }\n" |
| 111 | " .table_suite {\n" |
| 112 | " }\n" |
| 113 | " .table_result {\n" |
| 114 | " margin: 0px 0px 1em 0px;\n" |
| 115 | " }\n" |
| 116 | " .tablecell_title {\n" |
| 117 | " background-color: #a5cef7;\n" |
| 118 | " font-weight: bold;\n" |
| 119 | " }\n" |
| 120 | " \n" |
| 121 | " .tablecell_success {\n" |
| 122 | " background-color: #efefe7;\n" |
| 123 | " }\n" |
| 124 | " \n" |