index.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <title>Mocha Tests</title>
  5. <link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
  6. </head>
  7. <body>
  8. <div id="mocha"></div>
  9. <script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script>
  10. <script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>
  11. <script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
  12. <script>
  13. mocha.setup('bdd');
  14. </script>
  15. <script src="../base64.js"></script>
  16. <script>
  17. var assert = function(expr, msg) {
  18. if (!expr) throw new Error(msg || 'failed');
  19. };
  20. assert.equal = function(a, b, msg) {
  21. if (a !== b) throw new Error(msg || ('failed : '+a+','+b));
  22. };
  23. </script>
  24. <script src="./dankogai.js"></script>
  25. <script src="./es5.js"></script>
  26. <script src="./large.js"></script>
  27. <script src="./yoshinoya.js"></script>
  28. <script>
  29. $(function() {
  30. mocha.run();
  31. });
  32. </script>
  33. </head>
  34. <body>
  35. $Id: index.html,v 0.3 2017/09/11 08:43:43 dankogai Exp dankogai $
  36. <div id="mocha"></div>
  37. </body>
  38. </html>