3 class SeleniumTestHTMLLogger
{
4 public function setHeaders() {
6 $wgOut->addHeadItem( 'selenium', '<style type="text/css">
8 overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
9 white-space: pre-wrap; /* css-3 */
10 white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
11 white-space: -pre-wrap; /* Opera 4-6 */
12 white-space: -o-pre-wrap; /* Opera 7 */
14 word-wrap: break-word; /* Internet Explorer 5.5+ */
16 .selenium-success { color: green }
20 public function write( $message, $mode = false ) {
23 if ( $mode == SeleniumTestSuite
::RESULT_OK
) {
24 $out .= '<span class="selenium-success">';
26 $out .= htmlspecialchars( $message );
27 if ( $mode == SeleniumTestSuite
::RESULT_OK
) {
30 if ( $mode != SeleniumTestSuite
::CONTINUE_LINE
) {
34 $wgOut->addHTML( $out );