run.js 572 B

12345678910111213141516171819202122232425
  1. /* global window, jasmine */
  2. /* eslint strict: 0 */
  3. (function () {
  4. var jasmineEnv = jasmine.getEnv();
  5. jasmineEnv.updateInterval = 1000;
  6. var trivialReporter = new jasmine.TrivialReporter();
  7. jasmineEnv.addReporter(trivialReporter);
  8. jasmineEnv.specFilter = function (spec) {
  9. return trivialReporter.specFilter(spec);
  10. };
  11. var currentWindowOnload = window.onload;
  12. var execJasmine = function () {
  13. jasmineEnv.execute();
  14. };
  15. window.onload = function () {
  16. if (currentWindowOnload) {
  17. currentWindowOnload();
  18. }
  19. execJasmine();
  20. };
  21. }());