Removed references to PhantomJS from StackTraceSpec.js
This commit is contained in:
@@ -95,7 +95,7 @@ describe('StackTrace', function() {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('understands Safari <=14/Firefox/Phantom-OS X style traces', function() {
|
it('understands Safari <=14/Firefox style traces', function() {
|
||||||
const error = {
|
const error = {
|
||||||
message: 'nope',
|
message: 'nope',
|
||||||
stack:
|
stack:
|
||||||
@@ -149,7 +149,7 @@ describe('StackTrace', function() {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('does not mistake gibberish for Safari/Firefox/Phantom-OS X style traces', function() {
|
it('does not mistake gibberish for Safari/Firefox style traces', function() {
|
||||||
const error = {
|
const error = {
|
||||||
message: 'nope',
|
message: 'nope',
|
||||||
stack: 'randomcharsnotincludingwhitespace'
|
stack: 'randomcharsnotincludingwhitespace'
|
||||||
@@ -159,36 +159,6 @@ describe('StackTrace', function() {
|
|||||||
expect(result.frames).toEqual([{ raw: error.stack }]);
|
expect(result.frames).toEqual([{ raw: error.stack }]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('understands Phantom-Linux style traces', function() {
|
|
||||||
const error = {
|
|
||||||
message: 'nope',
|
|
||||||
stack:
|
|
||||||
' at UserContext.<anonymous> (http://localhost:8888/__spec__/core/UtilSpec.js:115:19)\n' +
|
|
||||||
' at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:4320:20)'
|
|
||||||
};
|
|
||||||
|
|
||||||
const result = new jasmineUnderTest.StackTrace(error);
|
|
||||||
|
|
||||||
expect(result.message).toBeFalsy();
|
|
||||||
expect(result.style).toEqual('v8');
|
|
||||||
expect(result.frames).toEqual([
|
|
||||||
{
|
|
||||||
raw:
|
|
||||||
' at UserContext.<anonymous> (http://localhost:8888/__spec__/core/UtilSpec.js:115:19)',
|
|
||||||
func: 'UserContext.<anonymous>',
|
|
||||||
file: 'http://localhost:8888/__spec__/core/UtilSpec.js',
|
|
||||||
line: 115
|
|
||||||
},
|
|
||||||
{
|
|
||||||
raw:
|
|
||||||
' at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:4320:20)',
|
|
||||||
func: 'QueueRunner.run',
|
|
||||||
file: 'http://localhost:8888/__jasmine__/jasmine.js',
|
|
||||||
line: 4320
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('ignores blank lines', function() {
|
it('ignores blank lines', function() {
|
||||||
const error = {
|
const error = {
|
||||||
message: 'nope',
|
message: 'nope',
|
||||||
@@ -241,7 +211,7 @@ describe('StackTrace', function() {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('consideres different types of errors', function() {
|
it('considers different types of errors', function() {
|
||||||
const error = {
|
const error = {
|
||||||
message: 'nope',
|
message: 'nope',
|
||||||
stack:
|
stack:
|
||||||
|
|||||||
Reference in New Issue
Block a user