MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / createTestContainer

Function createTestContainer

javascript/atoms/test/text_util.js:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28function getTestContainer() {
29 function createTestContainer() {
30 var testContainer = goog.dom.createDom('DIV', {
31 id: 'test-container',
32 style: 'border: 1px dotted silver'
33 }, goog.dom.createDom('DIV', {
34 style: 'font-weight:bold;' +
35 'text-decoration:underline;' +
36 'font-style:italic;' +
37 'margin: 0.5em'
38 }, 'Test Container'));
39 document.body.appendChild(testContainer);
40 return testContainer;
41 }
42
43 return goog.dom.getElement('test-container') || createTestContainer();
44}

Callers 1

getTestContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected