mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
jstd r899 2011-02-18 (post 1.3.1) + fix for jasmine adapter.
This commit is contained in:
parent
4c762bfe5c
commit
73ee5fc008
3 changed files with 6 additions and 3 deletions
|
|
@ -44,8 +44,11 @@
|
|||
for ( var i = 0; i < resultItems.length; i++) {
|
||||
if (!resultItems[i].passed()) {
|
||||
state = resultItems[i].message.match(/AssertionError:/) ? 'error' : 'failed';
|
||||
messages.push(resultItems[i].toString());
|
||||
messages.push(formatStack(resultItems[i].trace.stack));
|
||||
messages.push({
|
||||
'name' : resultItems[i].matcherName,
|
||||
'message' : resultItems[i].toString(),
|
||||
'stack' : formatStack(resultItems[i].trace.stack)
|
||||
});
|
||||
}
|
||||
}
|
||||
onTestDone(
|
||||
|
|
@ -53,7 +56,7 @@
|
|||
suite.getFullName(),
|
||||
spec.description,
|
||||
state,
|
||||
messages.join('\n'),
|
||||
jstestdriver.angular.toJson(messages),
|
||||
specLog.join('\n'),
|
||||
end - start));
|
||||
},
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue