Load error handling doesn't depend on browser features, so test it everywher

[#24901981]
This commit is contained in:
Steve Gravrock
2017-11-02 18:17:40 -07:00
parent 26a7bc6acf
commit ae9b95269c

View File

@@ -2018,8 +2018,6 @@ describe("Env integration", function() {
env.execute(); env.execute();
}); });
describe("In a browser", function() {
if (typeof document !== 'undefined') {
it('reports errors that occur during loading', function(done) { it('reports errors that occur during loading', function(done) {
var global = { var global = {
setTimeout: function(fn, delay) { setTimeout(fn, delay) }, setTimeout: function(fn, delay) { setTimeout(fn, delay) },
@@ -2053,7 +2051,6 @@ describe("Env integration", function() {
env.execute(); env.execute();
}); });
}
describe('If suppressLoadErrors was called', function() { describe('If suppressLoadErrors was called', function() {
it('does not report errors that occur during loading', function(done) { it('does not report errors that occur during loading', function(done) {
@@ -2078,5 +2075,4 @@ describe("Env integration", function() {
env.execute(); env.execute();
}); });
}); });
});
}); });