index.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 src="./atob.js"></script>
  29. <script>
  30. $(function() {
  31. mocha.run();
  32. });
  33. </script>
  34. </head>
  35. <body>
  36. $Id: index.html,v 0.3 2017/09/11 08:43:43 dankogai Exp dankogai $
  37. <div id="mocha"></div>
  38. </body>
  39. </html>