mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-03 04:34:44 +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++) {
|
for ( var i = 0; i < resultItems.length; i++) {
|
||||||
if (!resultItems[i].passed()) {
|
if (!resultItems[i].passed()) {
|
||||||
state = resultItems[i].message.match(/AssertionError:/) ? 'error' : 'failed';
|
state = resultItems[i].message.match(/AssertionError:/) ? 'error' : 'failed';
|
||||||
messages.push(resultItems[i].toString());
|
messages.push({
|
||||||
messages.push(formatStack(resultItems[i].trace.stack));
|
'name' : resultItems[i].matcherName,
|
||||||
|
'message' : resultItems[i].toString(),
|
||||||
|
'stack' : formatStack(resultItems[i].trace.stack)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onTestDone(
|
onTestDone(
|
||||||
|
|
@ -53,7 +56,7 @@
|
||||||
suite.getFullName(),
|
suite.getFullName(),
|
||||||
spec.description,
|
spec.description,
|
||||||
state,
|
state,
|
||||||
messages.join('\n'),
|
jstestdriver.angular.toJson(messages),
|
||||||
specLog.join('\n'),
|
specLog.join('\n'),
|
||||||
end - start));
|
end - start));
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue