mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-01 20:40:03 +08:00
jstd r899 2011-02-18 (post 1.3.1) + fix for jasmine adapter.
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user