Merge remote-tracking branch 'upstream/safari-15' into 4.0
This commit is contained in:
@@ -95,7 +95,7 @@ describe('StackTrace', function() {
|
||||
]);
|
||||
});
|
||||
|
||||
it('understands Safari/Firefox/Phantom-OS X style traces', function() {
|
||||
it('understands Safari <=14/Firefox/Phantom-OS X style traces', function() {
|
||||
var error = {
|
||||
message: 'nope',
|
||||
stack:
|
||||
@@ -122,6 +122,33 @@ describe('StackTrace', function() {
|
||||
]);
|
||||
});
|
||||
|
||||
it('understands Safari 15 style traces', function() {
|
||||
var error = {
|
||||
message: 'nope',
|
||||
stack:
|
||||
'@http://localhost:8888/__spec__/core/FooSpec.js:164:24\n' +
|
||||
'attempt@http://localhost:8888/__jasmine__/jasmine.js:8074:44\n'
|
||||
};
|
||||
var result = new jasmineUnderTest.StackTrace(error);
|
||||
|
||||
expect(result.message).toBeFalsy();
|
||||
expect(result.style).toEqual('webkit');
|
||||
expect(result.frames).toEqual([
|
||||
{
|
||||
raw: '@http://localhost:8888/__spec__/core/FooSpec.js:164:24',
|
||||
func: undefined,
|
||||
file: 'http://localhost:8888/__spec__/core/FooSpec.js',
|
||||
line: 164
|
||||
},
|
||||
{
|
||||
raw: 'attempt@http://localhost:8888/__jasmine__/jasmine.js:8074:44',
|
||||
func: 'attempt',
|
||||
file: 'http://localhost:8888/__jasmine__/jasmine.js',
|
||||
line: 8074
|
||||
}
|
||||
]);
|
||||
});
|
||||
|
||||
it('does not mistake gibberish for Safari/Firefox/Phantom-OS X style traces', function() {
|
||||
var error = {
|
||||
message: 'nope',
|
||||
|
||||
Reference in New Issue
Block a user