MCPcopy
hub / github.com/Mottie/Keyboard / appendTest

Function appendTest

testing/qunit-2.9.2.js:5141–5170  ·  view source on GitHub ↗
(name, testId, moduleName)

Source from the content-addressed store, hash-verified

5139 }
5140
5141 function appendTest(name, testId, moduleName) {
5142 var title,
5143 rerunTrigger,
5144 testBlock,
5145 assertList,
5146 tests = id("qunit-tests");
5147
5148 if (!tests) {
5149 return;
5150 }
5151
5152 title = document.createElement("strong");
5153 title.innerHTML = getNameHtml(name, moduleName);
5154
5155 rerunTrigger = document.createElement("a");
5156 rerunTrigger.innerHTML = "Rerun";
5157 rerunTrigger.href = setUrl({ testId: testId });
5158
5159 testBlock = document.createElement("li");
5160 testBlock.appendChild(title);
5161 testBlock.appendChild(rerunTrigger);
5162 testBlock.id = "qunit-test-output-" + testId;
5163
5164 assertList = document.createElement("ol");
5165 assertList.className = "qunit-assert-list";
5166
5167 testBlock.appendChild(assertList);
5168
5169 tests.appendChild(testBlock);
5170 }
5171
5172 // HTML Reporter initialization and load
5173 QUnit.begin(function (details) {

Callers 1

qunit-2.9.2.jsFile · 0.85

Calls 3

idFunction · 0.85
getNameHtmlFunction · 0.85
setUrlFunction · 0.85

Tested by

no test coverage detected