2
0

index.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Jasmine Spec Runner</title>
  5. <link rel="shortcut icon" type="image/png" href="lib/jasmine_favicon.png">
  6. <link rel="stylesheet" type="text/css" href="lib/jasmine.css">
  7. <script type="text/javascript" src="lib/jasmine.js"></script>
  8. <script type="text/javascript" src="lib/jasmine-html.js"></script>
  9. <script type="text/javascript" src="lib/json2.js"></script>
  10. <!-- include helper files here... -->
  11. <script src="helpers/h.js"></script>
  12. <script src="helpers/h-kill.js"></script>
  13. <script src="helpers/h-matchers.js"></script>
  14. <!-- include source files here... -->
  15. <script src="../es5-shim.js"></script>
  16. <!-- include spec files here... -->
  17. <script src="spec/s-array.js"></script>
  18. <script src="spec/s-function.js"></script>
  19. <script src="spec/s-string.js"></script>
  20. <script src="spec/s-object.js"></script>
  21. <script src="spec/s-date.js"></script>
  22. <script type="text/javascript">
  23. (function() {
  24. var jasmineEnv = jasmine.getEnv();
  25. jasmineEnv.updateInterval = 1000;
  26. var trivialReporter = new jasmine.TrivialReporter();
  27. jasmineEnv.addReporter(trivialReporter);
  28. jasmineEnv.specFilter = function(spec) {
  29. return trivialReporter.specFilter(spec);
  30. };
  31. var currentWindowOnload = window.onload;
  32. window.onload = function() {
  33. if (currentWindowOnload) {
  34. currentWindowOnload();
  35. }
  36. execJasmine();
  37. };
  38. function execJasmine() {
  39. jasmineEnv.execute();
  40. }
  41. })();
  42. </script>
  43. </head>
  44. <body>
  45. </body>
  46. </html>