Skip to content

Commit

Permalink
add delay to jasmine boot
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Nov 8, 2015
1 parent 02398d9 commit 30824fb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/page/lib/jasmine-2.3.4/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@
var currentWindowOnload = window.onload;

window.onload = function() {
if (currentWindowOnload) {
currentWindowOnload();
}
htmlReporter.initialize();
env.execute();
setTimeout(function() {
if (currentWindowOnload) {
currentWindowOnload();
}
htmlReporter.initialize();
env.execute();
}, 1000);
};

/**
Expand Down

0 comments on commit 30824fb

Please sign in to comment.