Skip to content

Commit

Permalink
Make important parts strong in failed and exceptional results.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswilms authored and nateabele committed Jun 6, 2011
1 parent e80f68e commit 70edc43
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/webroot/css/debug.css
Expand Up @@ -274,7 +274,7 @@ div.test-result {
.test-dashboard .test-result { .test-dashboard .test-result {
font-size: 1.15em; font-size: 1.15em;
} }
.test-dashboard .test-result .digit { .test-dashboard .digit {
font-weight: bold; font-weight: bold;
} }


Expand Down
4 changes: 2 additions & 2 deletions libraries/lithium/test/templates/html/exception.html.php
@@ -1,8 +1,8 @@
<div class="test-exception"> <div class="test-exception">
Exception thrown in <?php echo "{$error['class']}::{$error['method']}()"; ?> <strong>Exception</strong> thrown in <strong><?php echo "{$error['class']}::{$error['method']}()"; ?></strong>
on line <?php echo $error['line'] ?>: on line <?php echo $error['line'] ?>:
<span class="content"><?php echo $error['message'] ?></span> <span class="content"><?php echo $error['message'] ?></span>
<?php if (isset($error['trace']) && !empty($error['trace'])): ?> <?php if (isset($error['trace']) && !empty($error['trace'])): ?>
Trace: <span class="trace"><?php echo $error['trace'] ?></span> Trace: <span class="trace"><?php echo $error['trace'] ?></span>
<?php endif ?> <?php endif ?>
</div> </div>
13 changes: 7 additions & 6 deletions libraries/lithium/test/templates/html/fail.html.php
@@ -1,8 +1,9 @@
<div class="test-assert test-assert-failed"> <div class="test-assert test-assert-failed">
Assertion '<?php echo $error['assertion'] ?>' failed in Assertion '<strong><?php echo $error['assertion'] ?></strong>' failed in
<?php echo $error['class'] ?>::<?php echo $error['method']?>() on line <strong><?php echo $error['class'] ?>::<?php echo $error['method']?>()</strong>
<?php echo $error['line'] ?>: on line <?php echo $error['line'] ?>:
<span class="content"><?php echo htmlspecialchars(
$error['message'], ENT_QUOTES, 'UTF-8' <span class="content">
) ?></span> <?php echo htmlspecialchars($error['message'], ENT_QUOTES, 'UTF-8') ?>
</span>
</div> </div>

0 comments on commit 70edc43

Please sign in to comment.