Display deprecation warnings in HTML reporter

- Also no longer check for stack since IE doesn't do that

[#154746527]
This commit is contained in:
Gregg Van Hove
2018-02-05 12:11:36 -08:00
parent 5afe1222f4
commit 24bf3489dc
6 changed files with 87 additions and 14 deletions

View File

@@ -2011,29 +2011,20 @@ describe("Env integration", function() {
reporter.jasmineDone.and.callFake(function(result) {
expect(result.deprecationWarnings).toEqual([
jasmine.objectContaining({
message: 'top level deprecation',
stack: jasmine.any(String)
})
jasmine.objectContaining({ message: 'top level deprecation' })
]);
expect(reporter.suiteDone).toHaveBeenCalledWith(jasmine.objectContaining({
fullName: 'suite',
deprecationWarnings: [
jasmine.objectContaining({
message: 'suite level deprecation',
stack: jasmine.any(String)
})
jasmine.objectContaining({ message: 'suite level deprecation' })
]
}));
expect(reporter.specDone).toHaveBeenCalledWith(jasmine.objectContaining({
fullName: 'suite spec',
deprecationWarnings: [
jasmine.objectContaining({
message: 'spec level deprecation',
stack: jasmine.any(String)
})
jasmine.objectContaining({ message: 'spec level deprecation' })
]
}));