Adds expectations/actuals to Qunit CI message

This commit is contained in:
Kumar McMillan 2012-01-03 18:19:40 -06:00
Родитель 75657f6fc3
Коммит 4187b2f255
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -86,6 +86,12 @@
if (typeof(details.source) !== 'undefined') { if (typeof(details.source) !== 'undefined') {
msg.stacktrace = details.source; msg.stacktrace = details.source;
} }
if (typeof(details.expected) !== 'undefined') {
msg.message += '; Expected: "' + details.expected + '"';
}
if (typeof(details.actual) !== 'undefined') {
msg.message += '; Actual: "' + details.actual + '"';
}
} }
postMsg(msg); postMsg(msg);
}; };