When QUnit adds the test result details to your HTML document, it thoughtfully wraps the numbers of tests taken, passed and failed inside span elements, each with its own class, to let you recover these three numbers programmatically. However, even though I can see the spans in the finished HTML, I can't find them when I search with
jQuery('span.failed'); // For example
They aren't there during the onload event, although they are for the onunload event. Nor can I get them just after the QUnit test() calls.
What am I doing wrong?