]> git.mjollnir.org Git - moodle.git/commitdiff
Put the unit test styles in the standard theme, rather than using the previous nasty...
authortjhunt <tjhunt>
Wed, 13 Sep 2006 16:16:39 +0000 (16:16 +0000)
committertjhunt <tjhunt>
Wed, 13 Sep 2006 16:16:39 +0000 (16:16 +0000)
admin/report/simpletest/ex_reporter.php
theme/standard/styles_color.css
theme/standard/styles_layout.css

index 0a705f61f916b569402403998119f0374bb1d6d1..1003abaf72987c8d3b49cdaa6e40b2fcefa1bcb7 100644 (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.
      */
index fb1c68bcda6f6cc0e19d6130cb0bc2cc4ac69ff7..d2243081bcafff11f4deabe8b620e37351d87451 100644 (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
  ***/
index 15f68b528ccff9b48bb363d0d20706c840f6e250..465c902926f38a46620ffad1c38a028f28ba7a9b 100644 (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
  ***/