From 471b6b0e2deb21f29d305df42e5fe1024045ec40 Mon Sep 17 00:00:00 2001 From: DarkAngelBGE Date: Wed, 30 Apr 2008 14:08:29 +0000 Subject: [PATCH] coverage manager fix windows IE styles, testsuite help page typo fixes #4551 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6736 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/testsuite.php | 11 +++++++++-- cake/tests/lib/code_coverage_manager.php | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/cake/console/libs/testsuite.php b/cake/console/libs/testsuite.php index c2f6ad7d3..7224be880 100644 --- a/cake/console/libs/testsuite.php +++ b/cake/console/libs/testsuite.php @@ -69,6 +69,13 @@ class TestSuiteShell extends Shell { * @access public */ var $doCoverage = false; +/** + * The headline for the test output + * + * @var string + * @access public + */ + var $headline = 'CakePHP Test Shell'; /** * Initialization method installs Simpletest and loads all plugins * @@ -101,7 +108,7 @@ class TestSuiteShell extends Shell { * @access public */ function main() { - $this->out('CakePHP Test Shell'); + $this->out($this->headline); $this->hr(); if (count($this->args) > 0) { @@ -172,7 +179,7 @@ class TestSuiteShell extends Shell { $this->out("\t\t cake testsuite bugs_me group bug // for the plugin bugs_me and its test group 'bug'"); $this->out(''); $this->out('Code Coverage Analysis: '); - $this->out("\n\nAppend 'gov' to any of the above in order to enable code coverage analysis"); + $this->out("\n\nAppend 'cov' to any of the above in order to enable code coverage analysis"); } /** * Checks if the arguments supplied point to a valid test file and thus the shell can be run. diff --git a/cake/tests/lib/code_coverage_manager.php b/cake/tests/lib/code_coverage_manager.php index abc6b2096..55efa1477 100644 --- a/cake/tests/lib/code_coverage_manager.php +++ b/cake/tests/lib/code_coverage_manager.php @@ -465,7 +465,11 @@ class CodeCoverageManager { * @access private */ function __paintCodeline($class, $num, $line) { - return '
'.$num.''.h($line).'
'; + $line = h($line); + if (trim($line) == '') { + $line = ' '; // Win IE fix + } + return '
'.$num.''.$line.'
'; } /** * Calculates the coverage percentage based on a line count and a covered line count