Index: trunk/phase3/maintenance/tests/selenium/SeleniumTestHTMLLogger.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | class SeleniumTestHTMLLogger { |
5 | 5 | public function setHeaders() { |
6 | 6 | global $wgOut; |
7 | | - $wgOut->addHeadItem( 'selenium', '<style> |
| 7 | + $wgOut->addHeadItem( 'selenium', '<style type="text/css"> |
8 | 8 | .selenium pre { |
9 | 9 | overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */ |
10 | 10 | white-space: pre-wrap; /* css-3 */ |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | /* width: 99%; */ |
15 | 15 | word-wrap: break-word; /* Internet Explorer 5.5+ */ |
16 | 16 | } |
| 17 | + .selenium-success { color: green } |
17 | 18 | </style>' ); |
18 | 19 | } |
19 | 20 | |
— | — | @@ -20,11 +21,11 @@ |
21 | 22 | global $wgOut; |
22 | 23 | $out = ''; |
23 | 24 | if ( $mode == SeleniumTestSuite::RESULT_OK ) { |
24 | | - $out .= '<font color="green">'; |
| 25 | + $out .= '<span class="selenium-success">'; |
25 | 26 | } |
26 | 27 | $out .= htmlspecialchars( $message ); |
27 | 28 | if ( $mode == SeleniumTestSuite::RESULT_OK ) { |
28 | | - $out .= '</font>'; |
| 29 | + $out .= '</span>'; |
29 | 30 | } |
30 | 31 | if ( $mode != SeleniumTestSuite::CONTINUE_LINE ) { |
31 | 32 | $out .= '<br />'; |