mousetrap.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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. <!-- used to test targeted keyboard shortcuts w/ Mousetrap.wrap -->
  9. <form style="display: none;">
  10. <textarea></textarea>
  11. </form>
  12. <div id="mocha"></div>
  13. <script src="../mousetrap.js"></script>
  14. <script src="libs/key-event.js"></script>
  15. <script src="libs/chai-1.6.0.js"></script>
  16. <!-- <script src="libs/chai-spies-0.5.0.js"></script> -->
  17. <script src="libs/sinon-chai-2.4.0.js"></script>
  18. <script src="libs/sinon-1.7.1.js"></script>
  19. <script src="libs/sinon-ie-1.7.1.js"></script>
  20. <script src="libs/mocha-1.9.0.js"></script>
  21. <script>mocha.setup('bdd')</script>
  22. <script src="test.mousetrap.js"></script>
  23. <script>
  24. mocha.globals(['Mousetrap']);
  25. if (window.mochaPhantomJS) {
  26. window.mochaPhantomJS.run();
  27. }
  28. else if (!window.PHANTOMJS) {
  29. mocha.run();
  30. }
  31. </script>
  32. </body>