2
0

index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <script src="../es5-sham.js"></script>
  17. <!-- include spec files here... -->
  18. <script src="spec/s-array.js"></script>
  19. <script src="spec/s-function.js"></script>
  20. <script src="spec/s-string.js"></script>
  21. <script src="spec/s-object.js"></script>
  22. <script src="spec/s-number.js"></script>
  23. <script src="spec/s-date.js"></script>
  24. <script type="text/javascript">
  25. (function() {
  26. var jasmineEnv = jasmine.getEnv();
  27. jasmineEnv.updateInterval = 1000;
  28. var trivialReporter = new jasmine.TrivialReporter();
  29. jasmineEnv.addReporter(trivialReporter);
  30. jasmineEnv.specFilter = function(spec) {
  31. return trivialReporter.specFilter(spec);
  32. };
  33. var currentWindowOnload = window.onload;
  34. window.onload = function() {
  35. if (currentWindowOnload) {
  36. currentWindowOnload();
  37. }
  38. execJasmine();
  39. };
  40. function execJasmine() {
  41. jasmineEnv.execute();
  42. }
  43. })();
  44. </script>
  45. </head>
  46. <body>
  47. </body>
  48. </html>