SpecRunner.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <title>LZString tests</title>
  6. <link rel="shortcut icon" type="image/png" href="lib/jasmine-1.3.1/jasmine_favicon.png">
  7. <link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css">
  8. <script type="text/javascript" src="lib/jasmine-1.3.1/jasmine.js"></script>
  9. <script type="text/javascript" src="lib/jasmine-1.3.1/jasmine-html.js"></script>
  10. <!-- include source files here... -->
  11. <script type="text/javascript" src="../libs/lz-string.js"></script>
  12. <!-- include spec files here... -->
  13. <script type="text/javascript" src="lz-string-spec.js"></script>
  14. <script type="text/javascript">
  15. (function() {
  16. var jasmineEnv = jasmine.getEnv();
  17. jasmineEnv.updateInterval = 1000;
  18. var htmlReporter = new jasmine.HtmlReporter();
  19. jasmineEnv.addReporter(htmlReporter);
  20. jasmineEnv.specFilter = function(spec) {
  21. return htmlReporter.specFilter(spec);
  22. };
  23. var currentWindowOnload = window.onload;
  24. window.onload = function() {
  25. if (currentWindowOnload) {
  26. currentWindowOnload();
  27. }
  28. execJasmine();
  29. };
  30. function execJasmine() {
  31. jasmineEnv.execute();
  32. }
  33. })();
  34. </script>
  35. </head>
  36. <body>
  37. </body>
  38. </html>