(beginDetails)
| 6956 | } |
| 6957 | } |
| 6958 | function appendInterface(beginDetails) { |
| 6959 | var qunit = id('qunit'); |
| 6960 | |
| 6961 | // For compat with QUnit 1.2, and to support fully custom theme HTML, |
| 6962 | // we will use any existing elements if no id="qunit" element exists. |
| 6963 | // |
| 6964 | // Note that we don't fail or fallback to creating it ourselves, |
| 6965 | // because not having id="qunit" (and not having the below elements) |
| 6966 | // simply means QUnit acts headless, allowing users to use their own |
| 6967 | // reporters, or for a test runner to listen for events directly without |
| 6968 | // having the HTML reporter actively render anything. |
| 6969 | if (qunit) { |
| 6970 | qunit.setAttribute('role', 'main'); |
| 6971 | |
| 6972 | // Since QUnit 1.3, these are created automatically if the page |
| 6973 | // contains id="qunit". |
| 6974 | qunit.innerHTML = "<h1 id='qunit-header'>" + escapeText(document.title) + '</h1>' + "<h2 id='qunit-banner'></h2>" + "<div id='qunit-testrunner-toolbar' role='navigation'></div>" + appendFilteredTest() + "<h2 id='qunit-userAgent'></h2>" + "<ol id='qunit-tests'></ol>"; |
| 6975 | } |
| 6976 | appendHeader(); |
| 6977 | appendBanner(); |
| 6978 | appendTestResults(); |
| 6979 | appendUserAgent(); |
| 6980 | appendToolbar(beginDetails); |
| 6981 | } |
| 6982 | function appendTest(name, testId, moduleName) { |
| 6983 | var tests = id('qunit-tests'); |
| 6984 | if (!tests) { |
no test coverage detected