Source

shlomi-fish-homepage / Tests / js / test-suite.html

Full commit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!--
Test suite for the JS tests for Shlomi Fish's Homepage.
To write in test-driven development (TDD).
Copyright by Shlomi Fish, 2011.
-->
<head>
<title>jQTree Population Test</title>
<script src="jquery-latest.js"></script>
<link rel="stylesheet" href="qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="qunit.js"></script>
<script type="text/javascript" src="../../common/js/jq.js"></script>
<script type="text/javascript" src="../../common/js/to-jqtree.js"></script>
<script type="text/javascript" src="jqtree-from-h-w-json-nav-menu-test.js"></script>

  <script type="text/javascript">
      $(document).ready(function () {
          try {
              test_nav_menu_generation();
          }
          catch (err) {
            module("Meta");
            test("global_failure", function() {
                ok (false, 'test_abc_path() has thrown an exception or is invalid.');
            });
          }
          // Hide passed tests by default.
          $('#qunit-tests').addClass('hidepass');
      });
  </script>

</head>
<body>
  <h1 id="qunit-header">QUnit example</h1>
 <h2 id="qunit-banner"></h2>
 <div id="qunit-testrunner-toolbar"></div>
 <h2 id="qunit-userAgent"></h2>
 <ol id="qunit-tests"></ol>
 <div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>