- mark completed testcases with a checkmark, and shade the background in the same manner as the testgroup/subgroup selection page.
- change is_completed to return a list of results (if they exist)

Misc.
- some CSS standarization
This commit is contained in:
ccooper%deadsquid.com 2006-02-13 23:10:42 +00:00
Родитель f4f7db5351
Коммит de65acaa48
5 изменённых файлов: 78 добавлений и 48 удалений

Просмотреть файл

@ -117,7 +117,7 @@ sub is_completed {
# );
}
return scalar @results;
return @results;
}
#########################################################################

Просмотреть файл

@ -2,8 +2,8 @@
body {
margin: 0 30px 2em 30px;
color: #333;
background: #fff url("images/body_back.gif") repeat-x;
color: #333333;
background: #ffffff url("images/body_back.gif") repeat-x;
font-size: 65%;
}
@ -35,7 +35,7 @@ h1.firstHeading, h1.errorHeading {
}
h1.errorHeading {
color: #F00;
color: #FF0000;
}
select {
@ -89,7 +89,7 @@ a:active {
position: relative;
margin: 0 0 10px 0;
height: 60px;
border: solid #BBB 1px;
border: solid #bbbbbb 1px;
}
#header h1 {
@ -213,7 +213,7 @@ a:active {
font-family: verdana, arial, sans-serif;
text-decoration: none;
font-weight: bold;
color: #fff;
color: #ffffff;
height: 2em;
line-height: 2em;
background-image: url("images/tab-left.gif");
@ -245,7 +245,7 @@ a:active {
#navigation #personal a {
font-family: tahoma, arial, sans-serif;
font-weight: bold;
color: #fff;
color: #ffffff;
display: block;
text-decoration: none;
margin: 0;
@ -293,8 +293,8 @@ a:active {
#sidebar hr {
width: 60%;
color: #BBBBBB;
background-color: #BBBBBB;
color: #bbbbbb;
background-color: #bbbbbb;
height: 1px;
border: 0;
}
@ -359,7 +359,7 @@ div.pagetools ul {
}
#breadcrumbs a,
#breadcrumbs span {
color: #888;
color: #888888;
text-decoration: none;
background-image: url("images/breadcrumbs.gif");
background-repeat: no-repeat;
@ -406,7 +406,7 @@ table.section {
.run-tests {
border: solid #666666 1px;
background: #ffffff;
background-color: #ffffff;
margin-bottom: 10px;
}
@ -415,9 +415,9 @@ table.section {
}
.comments {
border: solid #BBB 1px;
background: #DDD;
color: #000;
border: solid #bbbbbb 1px;
background-color: #dddddd;
color: #000000;
}
.test-results td, .single-result td, .comments td {
@ -427,7 +427,7 @@ table.section {
}
.single-result td {
border: solid #BBB 1px;
border: solid #bbbbbb 1px;
}
.run-tests tr {
@ -440,13 +440,13 @@ table.section {
}
.test-results td, .run-tests td {
border: solid #BBB 1px;
border: solid #bbbbbb 1px;
}
td.header, th {
vertical-align: middle;
background: #DDD;
border: solid #BBB 1px;
background: #dddddd;
border: solid #bbbbbb 1px;
font-weight: bold;
text-transform: lowercase;
text-align: center;
@ -455,8 +455,8 @@ td.header, th {
}
.run-tests td.header {
background: #DDD;
border: solid #BBB 1px;
background: #dddddd;
border: solid #bbbbbb 1px;
font-weight: bold;
font-size: 1.05em;
text-transform: lowercase;
@ -466,12 +466,12 @@ td.header, th {
.no-results {
background: inherit;
color: #F00;
color: #ff0000;
text-align: center;
}
.radio-testresults {
border: solid #BBB 1px;
border: solid #bbbbbb 1px;
border-collapse: collapse;
padding: 3px 5px 3px 5px;
margin: 5px;
@ -484,19 +484,19 @@ td.header, th {
}
.testresults-submitted td {
border: solid #BBB 1px;
border: solid #bbbbbb 1px;
padding: 3px;
padding-left: 10px;
padding-right: 10px;
}
table.radio-testresults tr {
border: solid #BBB 1px;
border: solid #bbbbbb 1px;
padding: 3px 5px 3px 5px;
}
.pass {
background: #9F9;
background: #99ff99;
}
.pass a:hover {
@ -504,7 +504,7 @@ table.radio-testresults tr {
}
.fail {
background: #F99;
background: #ff9999;
}
.fail a:hover {
@ -512,7 +512,7 @@ table.radio-testresults tr {
}
.unclear {
background: #FF9;
background: #ffff99;
}
.unclear a:hover {
@ -520,8 +520,8 @@ table.radio-testresults tr {
}
.test-results tr.search {
background: #DDD;
border: solid #BBB 1px;
background: #dddddd;
border: solid #bbbbbb 1px;
font-size: 1em;
text-align: center;
padding: 0px 5px 0px 5px;
@ -548,7 +548,7 @@ table.radio-testresults tr {
.legend td {
vertical-align: top;
padding: 3px 5px 3px 5px;
border: solid #BBB 1px;
border: solid #bbbbbb 1px;
text-align: center;
}
@ -586,7 +586,7 @@ div.sec_head {
}
div.testcase-head {
background-color: #cccccc;
background-color: inherit;
padding: 0px;
font-weight: bold;
}
@ -602,9 +602,20 @@ div.sec_head td.l, div.testcase-head td.l {
color: #666666;
}
div.sec_head td.r, div.testcase-head td.r {
div.testcase-head td.l {
color: #333333;
}
div.sec_head td.r {
text-align: right;
vertical-align: middle;
color: #666666;
}
div.testcase-head td.r {
text-align: right;
vertical-align: middle;
color: #333333;
}
div.nav {
@ -741,15 +752,15 @@ p.comment {
/* 13 Authentication and login **************************************** */
div.loginbox {
background: #DDD;
border: solid #BBB 1px;
background: #dddddd;
border: solid #bbbbbb 1px;
padding: 5px;
font-size: 120%;
}
div.login_form {
background-color: #efefef;
border: solid #BBB 1px;
border: solid #bbbbbb 1px;
padding: 10px;
width: 45%;
height: 150px;
@ -761,13 +772,13 @@ div.login_form {
}
.login_important {
color: #F00;
color: #ff0000;
font-size: 120%;
}
.login_forhelp {
border: solid #BBB 1px;
color: #000;
border: solid #bbbbbb 1px;
color: #000000;
font-weight: bold;
font-size: 120%;
position: relative;
@ -816,6 +827,7 @@ div.login_form {
background: url(../images/warning.png) 7px center no-repeat;
background-color: #EF9398;
border: 1px solid #DC5757;
color: #000000;
}
#message div.confirmation,
@ -824,6 +836,7 @@ div.login_form {
background: url(../images/confirm.png) 7px center no-repeat;
background-color: #A6EF7B;
border: 1px solid #76C83F;
color: #000000;
}
@ -832,6 +845,7 @@ div.login_form {
background: url(../images/loading.gif) 7px center no-repeat;
background-color: #EBEBEB;
border: 1px solid #CCCCCC;
color: #000000;
}
/* Misc ************************************************************** */
@ -846,8 +860,8 @@ legend {
}
div.error {
background: #DDD;
border: solid #BBB 1px;
background-color: #dddddd;
border: solid #bbbbbb 1px;
padding: 5px;
}
@ -871,11 +885,11 @@ div.error {
}
.legend {
border: solid #666 1px;
border: solid #666666 1px;
border-collapse: collapse;
width: 100%;
margin-bottom: 10px;
background: #FFF;
background: #ffffff;
}
textarea {
@ -938,17 +952,31 @@ ol {
background-color: #666666;
}
div.section-full, div.category, div.section, div.testcase {
div.section-full, div.category, div.section {
padding: 10px;
margin-bottom: 5px;
border: solid #bbbbbb 1px;
background-color: #dddddd;
color: #000000;
overflow: auto;
}
div.testcase {
padding: 10px;
margin-bottom: 5px;
border: solid #bbbbbb 1px;
background-color: #cccccc;
overflow: auto;
color: #333333;
}
div.testcase-completed {
padding: 10px;
margin-bottom: 5px;
border: solid #bbbbbb 1px;
background-color: #999999;
overflow: auto;
color: #333333;
}
div.section-full, div.category {
@ -980,7 +1008,7 @@ div.category h2 {
div.category h3 {
margin: 5px 0px 5px 0px;
color: #363636;
color: #333333;
font-size: 0.9em;
line-height: 0.9em;
}

Двоичные данные
webtools/litmus/images/confirm.png

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 2.1 KiB

После

Ширина:  |  Высота:  |  Размер: 1.4 KiB

Просмотреть файл

@ -119,12 +119,14 @@
<!-- Test [% i %] Start -->
<div class="testcase" id="t[% i %]">
[% results=curtest.is_completed(sysconfig.platform,sysconfig.buildid,sysconfig.locale,defaultemail) %]
[% IF results %][% testcase_class="testcase-completed" %][% ELSE %][% testcase_class="testcase" %][% END %]
<div class="[% testcase_class %]" id="t[% i %]">
<div class="testcase-head">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="l"><a name="test_[% i %]" onclick="allStretch.showThisHideOpen(document.getElementById('t[% i %]-content'), 100, 'height');">[% loop.count %]: [% curtest.summary | html %]&nbsp;&raquo;</a></td>
<td class="r">
<td class="r">[% IF results %]<a title="You have already submitted a result for this testcase." target="test_results" href="single_result.cgi?id=[% results.0.testresult_id %]"><img align="absmiddle" src="images/confirm.png" border="0" /></a>&nbsp;[% END %]
<a title="Testcase ID#: [% curtest.testid | html %]" href="show_test.cgi?id=[% curtest.testid | uri | html %]">View&nbsp;/&nbsp;Edit</a></td>
</tr>
</table>

Просмотреть файл

@ -4,8 +4,8 @@
<ul>
[% order_num=1 %]
[% FOREACH curtest=tests %]
<li class="tcs" id="li[% order_num %]"><a id="a[% order_num %]" href="#"
onclick="allStretch.showThisHideOpen($('t[% order_num %]-content'), 100, 'height'); return false;">[% order_num %]. [% curtest.summary | html %]</a>
[% results=curtest.is_completed(sysconfig.platform,sysconfig.buildid,sysconfig.locale,defaultemail) %]
<li class="tcs" id="li[% order_num %]"><a id="a[% order_num %]" href="#" onclick="allStretch.showThisHideOpen($('t[% order_num %]-content'), 100, 'height'); return false;">[% order_num %]. [% IF results %]<strike>[% END %][% curtest.summary | html %][% IF results %]</strike>[% END %]</a>
</li>
[% order_num=order_num+1 %]
[% END %]