When QUnit adds the details of the test result to your HTML document, it thoughtfully wraps the number of accepted, passed, and failed tests inside the span elements, each with its own class, so that you can programmatically restore these three numbers. However, although I see gaps in the finished HTML, I cannot find them when I search with
jQuery('span.failed');
They are not present during the onload event, although they are intended for the onunload event. I also cannot get them right after the QUnit test () calls.
What am I doing wrong?
source share