mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1090148 - [mozlog] Remove test class from HTML formatter. r=cmanchester
This commit is contained in:
parent
c4194546e0
commit
f469be92b5
@ -94,8 +94,6 @@ class HTMLFormatter(base.BaseFormatter):
|
||||
self.make_result_html(data)
|
||||
|
||||
def make_result_html(self, data):
|
||||
cls_name = ""
|
||||
tc_name = unicode(data["test"])
|
||||
tc_time = (data["time"] - self.start_times.pop(data["test"])) / 1000.
|
||||
additional_html = []
|
||||
debug = data.get("extra", {})
|
||||
@ -149,9 +147,8 @@ class HTMLFormatter(base.BaseFormatter):
|
||||
|
||||
self.result_rows.append(
|
||||
html.tr([html.td(status_name, class_='col-result'),
|
||||
html.td(cls_name, class_='col-class'),
|
||||
html.td(tc_name, class_='col-name'),
|
||||
html.td("%.2f" % tc_time, class_='col-duration'),
|
||||
html.td(data['test'], class_='col-name'),
|
||||
html.td('%.2f' % tc_time, class_='col-duration'),
|
||||
html.td(links_html, class_='col-links'),
|
||||
html.td(additional_html, class_='debug')],
|
||||
class_=status_name.lower() + ' results-table-row'))
|
||||
@ -189,8 +186,7 @@ class HTMLFormatter(base.BaseFormatter):
|
||||
html.table([html.thead(
|
||||
html.tr([
|
||||
html.th('Result', class_='sortable', col='result'),
|
||||
html.th('Class', class_='sortable', col='class'),
|
||||
html.th('Test Name', class_='sortable', col='name'),
|
||||
html.th('Test', class_='sortable', col='name'),
|
||||
html.th('Duration', class_='sortable numeric', col='duration'),
|
||||
html.th('Links')]), id='results-table-head'),
|
||||
html.tbody(self.result_rows, id='results-table-body')], id='results-table')))
|
||||
|
@ -44,23 +44,17 @@ table {
|
||||
span.pass, .pass .col-result {
|
||||
color: green;
|
||||
}
|
||||
span.expected_fail, .expected_fail .col-result {
|
||||
color: orange;
|
||||
}
|
||||
span.expected_fail, .expected_fail .col-result,
|
||||
span.skip, .skip .col-result {
|
||||
color: orange;
|
||||
}
|
||||
span.unexpected_pass, .unexpected_pass .col-result {
|
||||
color: red;
|
||||
}
|
||||
span.fail, .fail .col-result {
|
||||
color: red;
|
||||
}
|
||||
span.fail, .fail .col-result,
|
||||
span.unexpected_fail, .unexpected_fail .col-result,
|
||||
span.unexpected_pass, .unexpected_pass .col-result,
|
||||
span.error,.error .col-result {
|
||||
color: red;
|
||||
}
|
||||
|
||||
|
||||
/******************************
|
||||
* RESULTS TABLE
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user