Permalink
Browse files

wrap in load event

  • Loading branch information...
1 parent ba3bf9c commit 1c06bd2629f73b4fe2909adac5390b2c99c7e019 @jnicklas jnicklas committed Nov 28, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/evergreen/views/run.erb
@@ -32,10 +32,12 @@
<% @suite.templates.each do |template| %>
Evergreen.templates[<%= template.name.to_json %>] = <%= template.escaped_contents %>;
<% end %>
- var jasmineEnv = jasmine.getEnv();
- jasmineEnv.addReporter(new jasmine.TrivialReporter());
- jasmineEnv.addReporter(new Evergreen.ReflectiveReporter());
- jasmineEnv.execute();
+ window.addEventListener('load', function() {
+ var jasmineEnv = jasmine.getEnv();
+ jasmineEnv.addReporter(new jasmine.TrivialReporter());
+ jasmineEnv.addReporter(new Evergreen.ReflectiveReporter());
+ jasmineEnv.execute();
+ });
})();
// ]]>
</script>

0 comments on commit 1c06bd2

Please sign in to comment.