Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

test-message for all message-bearing API reporting details
authorHerbert Vojčík <herby@mailbox.sk>
Thu, 12 Apr 2012 19:18:10 +0000 (22:18 +0300)
committerHerbert Vojčík <herby@mailbox.sk>
Thu, 12 Apr 2012 19:18:10 +0000 (22:18 +0300)
qunit/qunit.js

index 2ddbd8b..04222ed 100644 (file)
@@ -328,6 +328,7 @@ var QUnit = {
                        message: msg
                };
                msg = escapeInnerText(msg || (result ? "okay" : "failed"));
+               msg = '<span class="test-message">' + msg + "</span>";
                if ( !result ) {
                        var source = sourceFromStacktrace(2);
                        if (source) {
@@ -687,7 +688,9 @@ extend(QUnit, {
                        result: false,
                        message: message
                };
-               var output = escapeInnerText(message);
+               message = escapeInnerText(message) || "error";
+               message = '<span class="test-message">' + message + "</span>";
+               var output = message;
                if (source) {
                        details.source = source;
                        output += '<table><tr class="test-source"><th>Source: </th><td><pre>' + escapeInnerText(source) + '</pre></td></tr></table>';

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf