specs.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!doctype html>
  2. <head>
  3. <meta charset="utf-8">
  4. <title>morris.js tests</title>
  5. <link rel="stylesheet" href="../bower_components/mocha/mocha.css" type="text/css" media="screen" />
  6. <link rel="stylesheet" href="../morris.css" type="text/css" media="screen" />
  7. <!-- jQuery packaging changed for 2.1.0, so try to load both paths, one will work. -->
  8. <script src="../bower_components/jquery/dist/jquery.js"></script>
  9. <script src="../bower_components/jquery/jquery.js"></script>
  10. <script type="text/javascript" src="../bower_components/raphael/raphael-min.js"></script>
  11. </head>
  12. <body>
  13. <div id="mocha"></div>
  14. <script type="text/javascript" src="../bower_components/mocha/mocha.js"></script>
  15. <script type="text/javascript" src="../bower_components/chai/chai.js"></script>
  16. <script type="text/javascript" src="../bower_components/chai-jquery/chai-jquery.js"></script>
  17. <script type="text/javascript" src="../bower_components/sinon/index.js"></script>
  18. <script type="text/javascript" src="../bower_components/sinon-chai/lib/sinon-chai.js"></script>
  19. <script>
  20. mocha.setup('bdd');
  21. should = chai.should();
  22. </script>
  23. <script type="text/javascript" src="../morris.js"></script>
  24. <script type="text/javascript" src="../build/spec.js"></script>
  25. <div id="test" style="width: 400px; height: 200px;"></div>
  26. <script>
  27. if (navigator.userAgent.indexOf('PhantomJS') < 0) {
  28. mocha.run();
  29. }
  30. </script>
  31. </body>
  32. </html>