Fixed test failures on Safari 8 and 9
This commit is contained in:
@@ -2883,6 +2883,8 @@ describe('Env integration', function() {
|
|||||||
resolve = res;
|
resolve = res;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
env.configure({ random: false });
|
||||||
|
|
||||||
env.describe('a suite', function() {
|
env.describe('a suite', function() {
|
||||||
env.it('does not wait', function() {
|
env.it('does not wait', function() {
|
||||||
// Note: we intentionally don't return the result of each expectAsync.
|
// Note: we intentionally don't return the result of each expectAsync.
|
||||||
@@ -2892,6 +2894,12 @@ describe('Env integration', function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
env.it('another spec', function(done) {
|
||||||
|
// This is here to make sure that the async expectation evaluates
|
||||||
|
// before the Jasmine under test finishes, especially on Safari 8 and 9.
|
||||||
|
setTimeout(done, 10);
|
||||||
|
});
|
||||||
|
|
||||||
env.addReporter({
|
env.addReporter({
|
||||||
specDone: function() {
|
specDone: function() {
|
||||||
resolve();
|
resolve();
|
||||||
@@ -2938,6 +2946,8 @@ describe('Env integration', function() {
|
|||||||
resolve = res;
|
resolve = res;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
env.configure({ random: false });
|
||||||
|
|
||||||
env.describe('a suite', function() {
|
env.describe('a suite', function() {
|
||||||
env.afterAll(function() {
|
env.afterAll(function() {
|
||||||
// Note: we intentionally don't return the result of expectAsync.
|
// Note: we intentionally don't return the result of expectAsync.
|
||||||
@@ -2948,6 +2958,12 @@ describe('Env integration', function() {
|
|||||||
env.it('is a spec', function() {});
|
env.it('is a spec', function() {});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
env.it('another spec', function(done) {
|
||||||
|
// This is here to make sure that the async expectation evaluates
|
||||||
|
// before the Jasmine under test finishes, especially on Safari 8 and 9.
|
||||||
|
setTimeout(done, 10);
|
||||||
|
});
|
||||||
|
|
||||||
env.addReporter({
|
env.addReporter({
|
||||||
suiteDone: function() {
|
suiteDone: function() {
|
||||||
resolve();
|
resolve();
|
||||||
|
|||||||
Reference in New Issue
Block a user