Skip to content

Commit

Permalink
Merge pull request jasmine#332 from bjornblomqvist/preserve-whitespac…
Browse files Browse the repository at this point in the history
…e-in-result-message

Fixes jasmine#296, Whitespace failures will now be esier to understand.
  • Loading branch information
Davis W. Frank committed Mar 4, 2013
2 parents 86dafd5 + e6888b8 commit e6e8908
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jasmine-core/jasmine.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
.html-reporter .suite a { color: #333333; }
.html-reporter .failures .spec-detail { margin-bottom: 28px; }
.html-reporter .failures .spec-detail .description { display: block; color: white; background-color: #b03911; }
.html-reporter .result-message { padding-top: 14px; color: #333333; }
.html-reporter .result-message { padding-top: 14px; color: #333333; white-space: pre; }
.html-reporter .result-message span.result { display: block; }
.html-reporter .stack-trace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #dddddd; background: white; white-space: pre; }
2 changes: 2 additions & 0 deletions src/html/_HTMLReporter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ body {
padding-top: $line-height;

color: $text-color;

white-space: pre;
}

.result-message span.result {
Expand Down
2 changes: 1 addition & 1 deletion src/html/jasmine.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
.html-reporter .suite a { color: #333333; }
.html-reporter .failures .spec-detail { margin-bottom: 28px; }
.html-reporter .failures .spec-detail .description { display: block; color: white; background-color: #b03911; }
.html-reporter .result-message { padding-top: 14px; color: #333333; }
.html-reporter .result-message { padding-top: 14px; color: #333333; white-space: pre; }
.html-reporter .result-message span.result { display: block; }
.html-reporter .stack-trace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #dddddd; background: white; white-space: pre; }

0 comments on commit e6e8908

Please sign in to comment.