Sha256: 1aa5ba713a82ef974e25858bbb3b035366ed9306fd12549071640a1b3b8fc9bc

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>JavaScript unit test file</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <script src="../assets/jsunittest.js" type="text/javascript"></script>
  <% if testing_lib == 'jshoulda' %>
  <script src="../assets/jshoulda.js" type="text/javascript"></script>
  <% end %>
  
  <script src="../../dist/<%= dist_name %>.js" type="text/javascript"></script>
  
  <link rel="stylesheet" href="../assets/unittest.css" type="text/css" />
</head>
<body>

<div id="content">

  <div id="header">
    <h1>JavaScript unit test file</h1>
    <p>
      Functional tests for <strong>dist/<%= name %>.js</strong>.
    </p>
  </div>

  <!-- Log output (one per Runner, via {testLog: "testlog"} option)-->
  <div id="testlog"></div>
  
  <!-- Put sample/test html here -->
  <div id="sample"></div>
</div>

<script type="text/javascript">
// <![CDATA[
<% if testing_lib.nil? %>
  new Test.Unit.Runner({
    // replace this with your real tests
    setup: function() {
      
    },
    
    teardown: function() {
      
    },
    
    testTruth: function() { with(this) {
      assert(true);
    }}
      
  }, {testLog: "testlog"}); 
  // For each Test.UnitRunner instance, specify the element id where results will be
  // published; e.g. <div id="testlog"/> above.
  // That is, you can have multiple "new Test.Unit.Runner() { ... }" on this page, just
  // create more <div id="testlog2"></div> etc, and pass the element id to the hash above:
  // e.g. {testLog: "testlog2"}
<% elsif testing_lib == 'jshoulda' %>
context("A context", {
  setup: function() {

  }
  },
  should("run tests", function() {
    this.assert(true);
  })
)();
<% end %>
// ]]>
</script>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newjs-1.7.0 javascript_test_generators/functional_test/templates/test/test.html.erb
newjs-1.7.1 javascript_test_generators/functional_test/templates/test/test.html.erb