Sha256: ae528e557f8161df05ed0f419c8daaafd991fa189cc1382e62e0eab4038521f2

Contents?: true

Size: 1.58 KB

Versions: 6

Compression:

Stored size: 1.58 KB

Contents

<script type="text/javascript" src="<%= url("/jasmine/jasmine.js") %>"></script>
<script type="text/javascript" src="<%= url("/jasmine/jasmine-html.js") %>"></script>
<script type="text/javascript" src="<%= url("/resources/json2.js") %>"></script>
<script type="text/javascript" src="<%= url("/resources/run.js") %>"></script>
<script type="text/javascript">
  // <![CDATA[
      <% @suite.helpers.each do |helper| %>
        <%= render_spec(helper) %>;
      <% end %>

      <% if @spec %>
        <%= render_spec(@spec) %>
      <% else %>
        <% @suite.specs.each do |spec| %>
          describe("<%= spec.name %>", function() {
            <%= render_spec(spec) %>;
          });
        <% end %>
      <% end %>
  // ]]>
</script>

<div id="page">
  <h1>Evergreen</h1>
  <a class="back" href="<%= url("/") %>">Back to list</a>
</div>

<div id="test"></div>

<script type="text/javascript">
  // <![CDATA[
    (function() {
      Evergreen.driver = <%= Evergreen.driver.to_json %>;
      <% @suite.templates.each do |template| %>
        Evergreen.templates[<%= template.name.to_json %>] = <%= template.escaped_contents %>;
      <% end %>
      var jasmineExecute = function() {
        var jasmineEnv = jasmine.getEnv();
        jasmineEnv.addReporter(new jasmine.TrivialReporter());
        jasmineEnv.addReporter(new Evergreen.ReflectiveReporter());
        jasmineEnv.execute();
      };
      if (window.addEventListener) {
        window.addEventListener("load", jasmineExecute, false);
      }
      else {
        window.attachEvent("onload", jasmineExecute);
      }
    })();
  // ]]>
</script>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
evergreen-1.3.0 lib/evergreen/views/run.erb
evergreen-1.2.0 lib/evergreen/views/run.erb
evergreen-1.1.3 lib/evergreen/views/run.erb
evergreen-1.1.2 lib/evergreen/views/run.erb
evergreen-1.1.0 lib/evergreen/views/run.erb
evergreen-1.0.1 lib/evergreen/views/run.erb