Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

test-message for all message-bearing API reporting details

  • Loading branch information...
commit 329ee6160551fcd4cf622077d35ed604aaa64b7e 1 parent 68f3af8
Herbert Vojčík authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 qunit/qunit.js
5 qunit/qunit.js
@@ -328,6 +328,7 @@ var QUnit = {
328 328 message: msg
329 329 };
330 330 msg = escapeInnerText(msg || (result ? "okay" : "failed"));
  331 + msg = '<span class="test-message">' + msg + "</span>";
331 332 if ( !result ) {
332 333 var source = sourceFromStacktrace(2);
333 334 if (source) {
@@ -687,7 +688,9 @@ extend(QUnit, {
687 688 result: false,
688 689 message: message
689 690 };
690   - var output = escapeInnerText(message);
  691 + message = escapeInnerText(message) || "error";
  692 + message = '<span class="test-message">' + message + "</span>";
  693 + var output = message;
691 694 if (source) {
692 695 details.source = source;
693 696 output += '<table><tr class="test-source"><th>Source: </th><td><pre>' + escapeInnerText(source) + '</pre></td></tr></table>';

0 comments on commit 329ee61

Please sign in to comment.
Something went wrong with that request. Please try again.