Remove jasmine.CATCH_EXCEPTIONS
- HTMLReporters should be rewritten to make this sort of thing easier. - Fix HTMLReporter try/catch switch - We can't really call resultCallback & throw, so that's been reverted for now.
This commit is contained in:
@@ -34,9 +34,7 @@ describe('Exceptions:', function() {
|
||||
|
||||
describe('with break on exception', function() {
|
||||
it('should not catch the exception', function() {
|
||||
var oldCatch = jasmine.CATCH_EXCEPTIONS;
|
||||
jasmine.CATCH_EXCEPTIONS = false;
|
||||
env = new jasmine.Env();
|
||||
env.catchExceptions(false);
|
||||
var suite = env.describe('suite for break on exceptions', function() {
|
||||
env.it('should break when an exception is thrown', function() {
|
||||
throw new Error('I should hit a breakpoint!');
|
||||
@@ -50,9 +48,6 @@ describe('Exceptions:', function() {
|
||||
dont_change = 'oops I changed';
|
||||
}
|
||||
catch (e) {}
|
||||
finally {
|
||||
jasmine.CATCH_EXCEPTIONS = oldCatch;
|
||||
}
|
||||
|
||||
expect(dont_change).toEqual('I will never change!');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user