Exemplo n.º 1
0
    function _getCss()
    {
        $css = parent::_getCss();
        $css .= '
.diff {margin-bottom: 1em;}
.diff th {width:50%;}
.diff pre {margin:0; padding:0; background:none;}
.diff .changed, .diff .deleted, .diff .added {background: #FF5;}
		';
        return $css;
    }
Exemplo n.º 2
0
 public function getTestList()
 {
     // hacky; depends on a specific implementation of paintPass, etc.
     $list = parent::getTestList();
     $testcase = $list[1];
     if (class_exists($testcase, false)) {
         $file = str_replace('_', '/', $testcase) . '.php';
     } else {
         $file = $testcase;
     }
     $list[1] = '<a href="terms.php?file=' . $file . '">' . $testcase . '</a>';
     return $list;
 }
 function paintPass($message)
 {
     parent::paintPass($message);
     $breadcrumb = $this->getTestList();
     print "<font color='green'>Pass: </font>" . $breadcrumb[1] . "<br/>";
 }