0

I'm new to Jasmine. I have a need to launch SpecRunner.html but trigger execution only after some time manually for example from chrome console.

As far as I can see there is a boot method that is automatically executed. How can I prevent it from doing so but run it later ?

user310291
  • 36,946
  • 82
  • 271
  • 487

1 Answers1

1

You will need to create your own boot.js

Modify these lines

window.onload = function() {
    if (currentWindowOnload) {
        currentWindowOnload();
    }
    htmlReporter.initialize();
    env.execute();
};

to add the additional delay

window.onload = function() {
    if (currentWindowOnload) {
        currentWindowOnload();
    }
    htmlReporter.initialize();
    setTimeout(env.execute(), 5000);
};

Or something similar.

Dave Bush
  • 2,382
  • 15
  • 12