Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
cdac77c2
Commit
cdac77c2
authored
Jan 09, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test group separators to the html version of performance report.
parent
7bf091cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
summary.py
modules/ts/misc/summary.py
+11
-1
table_formatter.py
modules/ts/misc/table_formatter.py
+11
-5
No files found.
modules/ts/misc/summary.py
View file @
cdac77c2
...
...
@@ -124,14 +124,24 @@ if __name__ == "__main__":
i
+=
1
# rows
prevGroupName
=
None
needNewRow
=
True
lastRow
=
None
for
name
in
sorted
(
test_cases
.
iterkeys
(),
key
=
alphanum_keyselector
):
cases
=
test_cases
[
name
]
if
needNewRow
:
tbl
.
newRow
()
lastRow
=
tbl
.
newRow
()
if
not
options
.
showall
:
needNewRow
=
False
tbl
.
newCell
(
"name"
,
name
)
groupName
=
next
(
c
for
c
in
cases
if
c
)
.
shortName
()
if
groupName
!=
prevGroupName
:
prop
=
lastRow
.
props
.
get
(
"cssclass"
,
""
)
if
"firstingroup"
not
in
prop
:
lastRow
.
props
[
"cssclass"
]
=
prop
+
" firstingroup"
prevGroupName
=
groupName
for
i
in
range
(
setsCount
):
case
=
cases
[
i
]
if
case
is
None
:
...
...
modules/ts/misc/table_formatter.py
View file @
cdac77c2
...
...
@@ -44,7 +44,8 @@ class table(object):
self
.
rows
.
append
(
tblRow
(
len
(
self
.
columns
),
properties
))
else
:
self
.
rows
[
ridx
+
1
]
.
props
=
properties
self
.
ridx
+=
1
self
.
ridx
+=
1
return
self
.
rows
[
self
.
ridx
]
def
trimLastRow
(
self
):
if
self
.
rows
:
...
...
@@ -377,8 +378,12 @@ class table(object):
rows
=
[
row
for
row
in
self
.
rows
if
not
self
.
getValue
(
"header"
)]
for
r
in
range
(
len
(
rows
)):
row
=
rows
[
r
]
out
.
write
(
" <tr>
\n
"
)
row
=
rows
[
r
]
rowattr
=
""
cssclass
=
self
.
getValue
(
"cssclass"
,
row
)
if
cssclass
:
rowattr
+=
" class=
\"
%
s
\"
"
%
cssclass
out
.
write
(
" <tr
%
s>
\n
"
%
(
rowattr
))
i
=
0
while
i
<
len
(
row
.
cells
):
column
=
columns
[
i
]
...
...
@@ -441,11 +446,12 @@ html, body {font-family: Lucida Console, Courier New, Courier;font-size: 16px;co
.tbl{background:none repeat scroll 0 0 #FFFFFF;border-collapse:collapse;font-family:"Lucida Sans Unicode","Lucida Grande",Sans-Serif;font-size:14px;margin:20px;text-align:left;width:480px;margin-left: auto;margin-right: auto;white-space:nowrap;}
.tbl span{display:block;white-space:nowrap;}
.tbl thead tr:last-child th {padding-bottom:5px;}
.tbl tbody tr:first-child td {border-top:
2
px solid #6678B1;}
.tbl tbody tr:first-child td {border-top:
3
px solid #6678B1;}
.tbl th{border:none;color:#003399;font-size:16px;font-weight:normal;white-space:nowrap;padding:3px 10px;}
.tbl td{border:none;border-bottom:1px solid #CCCCCC;color:#666699;padding:6px 8px;white-space:nowrap;}
.tbl tbody tr:hover td{color:#000099;}
.tbl caption{font:italic 16px "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;padding:0 0 5px;text-align:right;white-space:normal;}
.tbl caption{font:italic 16px "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;padding:0 0 5px;text-align:right;white-space:normal;}
.firstingroup {border-top:2px solid #6678B1;}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment