Sha256: 05e1b8751c1df820613207a92f756e2d166ba61d0071c6f027cf68532db59f65

Contents?: true

Size: 1.56 KB

Versions: 8

Compression:

Stored size: 1.56 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>
  
  <script src="../../public/javascripts/<%= library_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>
      This file tests <strong><%= library_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[

  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"}
// ]]>
</script>
</body>
</html>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
newjs-1.3.0 rails_generators/javascript_test/templates/test.html.erb
newjs-1.3.1 rails_generators/javascript_test/templates/test.html.erb
newjs-1.3.2 rails_generators/javascript_test/templates/test.html.erb
newjs-1.3.3 rails_generators/javascript_test/templates/test.html.erb
newjs-1.3.4 rails_generators/javascript_test/templates/test.html.erb
newjs-1.3.5 rails_generators/javascript_test/templates/test.html.erb
newjs-1.3.6 rails_generators/javascript_test/templates/test.html.erb
newjs-1.3.7 rails_generators/javascript_test/templates/test.html.erb