tests.html 983 B

12345678910111213141516171819202122232425262728293031323334
  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. <!-- You should open this file directly in a browser from your file system, not from a server... -->
  9. <div id="mocha"></div>
  10. <script>
  11. globalConflict = "This is a conflict";
  12. DeepDiff = globalConflict;
  13. </script>
  14. <script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script>
  15. <script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>
  16. <script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
  17. <script>
  18. mocha.setup('bdd')
  19. </script>
  20. <!--script src="../index.js"></script-->
  21. <script src="../dist/deep-diff.min.js"></script>
  22. <script src="tests.js"></script>
  23. <script>
  24. window.onload = function () {
  25. mocha.checkLeaks();
  26. mocha.globals(['jQuery']);
  27. mocha.run();
  28. };
  29. </script>
  30. </body>
  31. </html>