I have got a test that parses XML and appends an element to another on a page.
How can I compare this actual element to an expected string or object, so that the order of attributes does not matter to prevent false positives because of differences caused by cross browser processing
It would be a good idea to include a summary of code coverage within any files or script tags that have had tests run against them, that are reported with the test results summary.
After running tests, as described, a <p id="qunit-testresult"> is visible, but the <ol id="qunit-tests"></ol> element below is empty in the DOM
<h1 id="qunit-header">Header text</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
I'm stepping through QUnit.js to find where the results are supposed to be added to the document and appear as they do on the example page, but if anyone has a tip on where best to look, or any rookie errors on the mark-up/config, that would be great.