Sha256: cc154a80966ce6b3ecce1a1bb1dc4f69acacf06e4520eed607e994d3687c6474

Contents?: true

Size: 1.34 KB

Versions: 7

Compression:

Stored size: 1.34 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <title>Netzke Testing</title>
  <%= load_netzke(minified: false) %>

  <% if params[:spec] %>
    <%# dependencies %>
    <%= javascript_include_tag "netzke/testing/expect/expect.js" %>
    <%= javascript_include_tag "netzke/testing/mocha/mocha.js" %>
    <%= stylesheet_link_tag "netzke/testing/mocha/mocha.css" %>

    <%# mocha config %>
    <script>
      mocha.setup('bdd');
      mocha.setup({ignoreLeaks: true, slow: 500, timeout: <%= (params[:timeout].to_i || Netzke::Testing.js_timeout) * 1000 %>});
      Ext.onReady(function(){
        Netzke.mochaRunner = mocha.run(function(){Netzke.mochaDone = true;});
      });
    </script>

    <%# netzke-testing helpers %>
    <% if !params["no-helpers"] %>
      <%= javascript_include_tag "netzke/testing/helpers/actions" %>
      <%= javascript_include_tag "netzke/testing/helpers/queries" %>
      <%= javascript_include_tag "netzke/testing/helpers/expectations" %>
      <%= javascript_include_tag "netzke/testing/helpers/grid" %>
      <%= javascript_include_tag "netzke/testing/helpers/form" %>
    <% end %>

    <%# custom JS (e.g. additional helpers) %>
    <%= javascript_include_tag "netzke/testing" %>

    <%# actual spec %>
    <%= javascript_include_tag "/netzke/specs/#{params[:spec]}" %>
  <% end %>

</head>
<body>

<%= yield %>
<div id="mocha"></div>
</body>
</html>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
netzke-testing-6.5.0.0 app/views/layouts/netzke/testing.html.erb
netzke-testing-6.5.0.0.rc1 app/views/layouts/netzke/testing.html.erb
netzke-testing-1.0.1.0 app/views/layouts/netzke/testing.html.erb
netzke-testing-1.0.0.0 app/views/layouts/netzke/testing.html.erb
netzke-testing-1.0.0.0.pre app/views/layouts/netzke/testing.html.erb
netzke-testing-0.12.3 app/views/layouts/netzke/testing.html.erb
netzke-testing-0.12.2 app/views/layouts/netzke/testing.html.erb