MCPcopy
hub / github.com/SeleniumHQ/selenium / appendTest

Function appendTest

third_party/js/qunit/qunit.js:6982–7007  ·  view source on GitHub ↗
(name, testId, moduleName)

Source from the content-addressed store, hash-verified

6980 appendToolbar(beginDetails);
6981 }
6982 function appendTest(name, testId, moduleName) {
6983 var tests = id('qunit-tests');
6984 if (!tests) {
6985 return;
6986 }
6987 var title = document.createElement('strong');
6988 title.innerHTML = getNameHtml(name, moduleName);
6989 var testBlock = document.createElement('li');
6990 testBlock.appendChild(title);
6991
6992 // No ID or rerun link for "global failure" blocks
6993 if (testId !== undefined) {
6994 var rerunTrigger = document.createElement('a');
6995 rerunTrigger.innerHTML = 'Rerun';
6996 rerunTrigger.href = setUrl({
6997 testId: testId
6998 });
6999 testBlock.id = 'qunit-test-output-' + testId;
7000 testBlock.appendChild(rerunTrigger);
7001 }
7002 var assertList = document.createElement('ol');
7003 assertList.className = 'qunit-assert-list';
7004 testBlock.appendChild(assertList);
7005 tests.appendChild(testBlock);
7006 return testBlock;
7007 }
7008
7009 // HTML Reporter initialization and load
7010 QUnit.on('runStart', function (runStart) {

Callers 1

qunit.jsFile · 0.85

Calls 3

getNameHtmlFunction · 0.85
setUrlFunction · 0.85
idFunction · 0.70

Tested by

no test coverage detected