1
0

mousetrap.html 905 B

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="utf-8">
  4. <title>Mousetrap Tests</title>
  5. <link rel="stylesheet" href="libs/mocha-1.9.0.css" />
  6. </head>
  7. <body>
  8. <div id="mocha"></div>
  9. <script src="../mousetrap.js"></script>
  10. <script src="libs/key-event.js"></script>
  11. <script src="libs/chai-1.6.0.js"></script>
  12. <!-- <script src="libs/chai-spies-0.5.0.js"></script> -->
  13. <script src="libs/sinon-chai-2.4.0.js"></script>
  14. <script src="libs/sinon-1.7.1.js"></script>
  15. <script src="libs/sinon-ie-1.7.1.js"></script>
  16. <script src="libs/mocha-1.9.0.js"></script>
  17. <script>mocha.setup('bdd')</script>
  18. <script src="test.mousetrap.js"></script>
  19. <script>
  20. mocha.globals(['Mousetrap']);
  21. if (window.mochaPhantomJS) {
  22. window.mochaPhantomJS.run();
  23. }
  24. else if (!window.PHANTOMJS) {
  25. mocha.run();
  26. }
  27. </script>
  28. </body>