Merge branch 'typo-suites' of https://github.com/FelixRilling/jasmine into FelixRilling-typo-suites
- Merges #1666 from @FelixRilling
This commit is contained in:
@@ -96,7 +96,7 @@ describe("ExceptionFormatter", function() {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("filters Jamine stack frames from Webkit style traces", function() {
|
it("filters Jasmine stack frames from Webkit style traces", function() {
|
||||||
var error = {
|
var error = {
|
||||||
stack: 'http://localhost:8888/__spec__/core/UtilSpec.js:115:28\n' +
|
stack: 'http://localhost:8888/__spec__/core/UtilSpec.js:115:28\n' +
|
||||||
'fn1@http://localhost:8888/__jasmine__/jasmine.js:4320:27\n' +
|
'fn1@http://localhost:8888/__jasmine__/jasmine.js:4320:27\n' +
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ describe("JsApiReporter", function() {
|
|||||||
expect(reporter.suiteResults(1, 1)).toEqual([suiteResult2]);
|
expect(reporter.suiteResults(1, 1)).toEqual([suiteResult2]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns nothing for out of bounds indicies", function() {
|
it("returns nothing for out of bounds indices", function() {
|
||||||
expect(reporter.suiteResults(0, 3)).toEqual([suiteResult1, suiteResult2]);
|
expect(reporter.suiteResults(0, 3)).toEqual([suiteResult1, suiteResult2]);
|
||||||
expect(reporter.suiteResults(2, 3)).toEqual([]);
|
expect(reporter.suiteResults(2, 3)).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ describe("jasmineUnderTest.pp", function () {
|
|||||||
expect(jasmineUnderTest.pp(set)).toEqual("Set( 1, 2 )");
|
expect(jasmineUnderTest.pp(set)).toEqual("Set( 1, 2 )");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should truncate sets with more elments than jasmineUnderTest.MAX_PRETTY_PRINT_ARRAY_LENGTH", function() {
|
it("should truncate sets with more elements than jasmineUnderTest.MAX_PRETTY_PRINT_ARRAY_LENGTH", function() {
|
||||||
jasmine.getEnv().requireFunctioningSets();
|
jasmine.getEnv().requireFunctioningSets();
|
||||||
var originalMaxSize = jasmineUnderTest.MAX_PRETTY_PRINT_ARRAY_LENGTH;
|
var originalMaxSize = jasmineUnderTest.MAX_PRETTY_PRINT_ARRAY_LENGTH;
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ describe("jasmineUnderTest.pp", function () {
|
|||||||
expect(jasmineUnderTest.pp(map)).toEqual("Map( [ 1, 2 ] )");
|
expect(jasmineUnderTest.pp(map)).toEqual("Map( [ 1, 2 ] )");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should truncate maps with more elments than jasmineUnderTest.MAX_PRETTY_PRINT_ARRAY_LENGTH", function() {
|
it("should truncate maps with more elements than jasmineUnderTest.MAX_PRETTY_PRINT_ARRAY_LENGTH", function() {
|
||||||
jasmine.getEnv().requireFunctioningMaps();
|
jasmine.getEnv().requireFunctioningMaps();
|
||||||
var originalMaxSize = jasmineUnderTest.MAX_PRETTY_PRINT_ARRAY_LENGTH;
|
var originalMaxSize = jasmineUnderTest.MAX_PRETTY_PRINT_ARRAY_LENGTH;
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ describe('Printing a big object', function(){
|
|||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
it('takes a resonable amount of time', function(){
|
it('takes a reasonable amount of time', function(){
|
||||||
bigObject = generateObject(0);
|
bigObject = generateObject(0);
|
||||||
expect(jasmineUnderTest.pp(bigObject)).toMatch(/cycle/);
|
expect(jasmineUnderTest.pp(bigObject)).toMatch(/cycle/);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user