mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
80f7ef6fe9
commit
45f501a54b
3 changed files with 37 additions and 16 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue