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