From: tjhunt Date: Wed, 13 Sep 2006 16:16:39 +0000 (+0000) Subject: Put the unit test styles in the standard theme, rather than using the previous nasty... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=45f501a54bfb65bc09255cf77d0736462fccab97;p=moodle.git 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. --- diff --git a/admin/report/simpletest/ex_reporter.php b/admin/report/simpletest/ex_reporter.php index 0a705f61f9..1003abaf72 100644 --- a/admin/report/simpletest/ex_reporter.php +++ b/admin/report/simpletest/ex_reporter.php @@ -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. */ diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css index fb1c68bcda..d2243081bc 100644 --- a/theme/standard/styles_color.css +++ b/theme/standard/styles_color.css @@ -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 ***/ diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 15f68b528c..465c902926 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -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 ***/