diff --git a/www/www.reactos.org/testman/compare.php b/www/www.reactos.org/testman/compare.php index 788900af..71713f5b 100644 --- a/www/www.reactos.org/testman/compare.php +++ b/www/www.reactos.org/testman/compare.php @@ -68,8 +68,8 @@ $table_summary .= ''; $table_totals .= ''; - $table_totals .= sprintf('
%s %s
', $testman_langres["totaltests"], $row["count"], GetDifference($row, $prev_row, "count")); - $table_totals .= sprintf('
%d %s
', $testman_langres["failedtests"], ($row["failures"] > 0 ? 'real' : 'zero'), $row["failures"], GetDifference($row, $prev_row, "failures")); + $table_totals .= sprintf('
%s %s
', $testman_langres["totaltests"], $row["count"], GetDifference($row, $prev_row, "count")); + $table_totals .= sprintf('
%d %s
', $testman_langres["failedtests"], ($row["failures"] > 0 ? 'real' : 'zero'), $row["failures"], GetDifference($row, $prev_row, "failures")); $table_totals .= sprintf('
healthindicator
', $indicator->getImagePath()); $table_totals .= ''; @@ -79,7 +79,7 @@ { $failed_reboots = ($key == 'reboots' && $row[$key] > MACHINE_REBOOTS_THRESHOLD) ? ' worse' : ''; - $performance[$key] .= sprintf('
%s %s
', $testman_langres[$key], $failed_reboots, $row[$key], GetDifference($row, $prev_row, $key, true)); + $performance[$key] .= sprintf('
%s %s
', $testman_langres[$key], $failed_reboots, $row[$key], GetDifference($row, $prev_row, $key, true)); } // Get the test results for each column. @@ -87,7 +87,7 @@ $prev_row = $row; } - + foreach ($performance as $key => $perf_text) $table_performance .= '' . $testman_langres[$key] . '' . $perf_text . ''; @@ -172,10 +172,10 @@ $class = 'todo'; } - $table_results .= sprintf('
%s %s
', $testman_langres["totaltests"], GetTotalTestsString($row), GetDifference($row, $prev_row, "count")); - $table_results .= sprintf('
%d %s
', $testman_langres["failedtests"], $class, $row["failures"], GetDifference($row, $prev_row, "failures")); - $table_results .= sprintf('
%d %s
', $testman_langres["skippedtests"], $row["skipped"], GetDifference($row, $prev_row, "skipped")); - $table_results .= sprintf('
%g
', $testman_langres["timetest"], $row["time"]); + $table_results .= sprintf('
%s %s
', $testman_langres["totaltests"], GetTotalTestsString($row), GetDifference($row, $prev_row, "count")); + $table_results .= sprintf('
%d %s
', $testman_langres["failedtests"], $class, $row["failures"], GetDifference($row, $prev_row, "failures")); + $table_results .= sprintf('
%d %s
', $testman_langres["skippedtests"], $row["skipped"], GetDifference($row, $prev_row, "skipped")); + $table_results .= sprintf('
%g
', $testman_langres["timetest"], $row["time"]); } else { @@ -206,15 +206,15 @@ for ($i = 0; $i < $reader->getTestIDCount(); $i++) { $summary_count .= ''; - $summary_count .= sprintf('
%s %s
', $testman_langres["totaltests"], $summary[$i]["total"], GetDifference($summary[$i], $summary[$i - 1], "total")); - $summary_count .= sprintf('
%s%s
', $testman_langres["totaltests"].' '.$testman_langres["inc"], $summary[$i]["count_inc"] > 0 ? '+' : '', $summary[$i]["count_inc"]); - $summary_count .= sprintf('
%s%s
', $testman_langres["totaltests"].' '.$testman_langres["dec"], $summary[$i]["count_dec"] > 0 ? '+' : '', $summary[$i]["count_dec"]); + $summary_count .= sprintf('
%s %s
', $testman_langres["totaltests"], $summary[$i]["total"], GetDifference($summary[$i], $summary[$i - 1], "total")); + $summary_count .= sprintf('
%s%s
', $testman_langres["totaltests"].' '.$testman_langres["inc"], $summary[$i]["count_inc"] > 0 ? '+' : '', $summary[$i]["count_inc"]); + $summary_count .= sprintf('
%s%s
', $testman_langres["totaltests"].' '.$testman_langres["dec"], $summary[$i]["count_dec"] > 0 ? '+' : '', $summary[$i]["count_dec"]); $summary_count .= ''; $summary_failures .= ''; - $summary_failures .= sprintf('
%d %s
', $testman_langres["failedtests"], (($summary[$i]["failed"] > 0) ? 'real' : 'zero'), $summary[$i]["failed"], GetDifference($summary[$i], $summary[$i - 1], "failed")); - $summary_failures .= sprintf('
%s%s
', $testman_langres["failedtests"].' '.$testman_langres["dec"], $summary[$i]["fail_dec"] > 0 ? '+' : '', $summary[$i]["fail_dec"]); - $summary_failures .= sprintf('
%s%s
', $testman_langres["failedtests"].' '.$testman_langres["inc"], $summary[$i]["fail_inc"] > 0 ? '+' : '', $summary[$i]["fail_inc"]); + $summary_failures .= sprintf('
%d %s
', $testman_langres["failedtests"], (($summary[$i]["failed"] > 0) ? 'real' : 'zero'), $summary[$i]["failed"], GetDifference($summary[$i], $summary[$i - 1], "failed")); + $summary_failures .= sprintf('
%s%s
', $testman_langres["failedtests"].' '.$testman_langres["dec"], $summary[$i]["fail_dec"] > 0 ? '+' : '', $summary[$i]["fail_dec"]); + $summary_failures .= sprintf('
%s%s
', $testman_langres["failedtests"].' '.$testman_langres["inc"], $summary[$i]["fail_inc"] > 0 ? '+' : '', $summary[$i]["fail_inc"]); $summary_failures .= ''; } diff --git a/www/www.reactos.org/testman/compare.templ.php b/www/www.reactos.org/testman/compare.templ.php index ed73ddc5..4d0d7864 100644 --- a/www/www.reactos.org/testman/compare.templ.php +++ b/www/www.reactos.org/testman/compare.templ.php @@ -3,10 +3,7 @@ <?php echo $testman_langres["compare_title"]; ?> - - - - + printHead(); ?>