Put the unit test styles in the standard theme, rather than using the previous nasty hack that had been broken by the admin page changes.

This commit is contained in:
tjhunt 2006-09-13 16:16:39 +00:00
parent 80f7ef6fe9
commit 45f501a54b
3 changed files with 37 additions and 16 deletions

View file

@ -127,22 +127,6 @@ class ExHtmlReporter extends HtmlReporter {
}
}
/**
* Return extra CSS that is added to the results page.
*/
function _getCss() {
// Don't call the parent, do our own thing instead.
return
' span.notice { color: teal; }' .
' b.pass { color: green; }' .
' b.fail, b.exception { color: red; }' .
' .exception, .exception pre { background: #fdd; }' .
' .exception pre { padding: 8px; }' .
' .unittestsummary { padding: 8px; margin-top: 1em; color: white; }' .
' .unittestsummary.fail { background-color: red; } ' .
' .unittestsummary.pass { background-color: green; } ';
}
/**
* Output anything that should appear above all the test output.
*/

View file

@ -276,6 +276,34 @@ table.flexible .r1 {
background-color: #fafafa;
}
#admin-report-simpletest-index span.notice {
color: teal;
}
#admin-report-simpletest-index b.pass {
color: green;
}
#admin-report-simpletest-index b.fail, b.exception {
color: red;
}
#admin-report-simpletest-index .exception, .exception pre {
background-color: #fdd;
}
#admin-report-simpletest-index .unittestsummary {
color: white;
}
#admin-report-simpletest-index .unittestsummary.fail {
background-color: red;
}
#admin-report-simpletest-index .unittestsummary.pass {
background-color: green;
}
/***
*** Blocks
***/

View file

@ -428,6 +428,15 @@ body#admin-roles-manage table.generalbox {
margin: auto;
}
#admin-report-simpletest-index .exception pre {
padding: 8px;
}
#admin-report-simpletest-index .unittestsummary {
padding: 8px;
margin-top: 1em;
}
/***
*** Blocks
***/