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

Function getTestContainer

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

Source from the content-addressed store, hash-verified

26
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}
45
46
47/**

Callers 1

assertTextIsFunction · 0.85

Calls 2

createTestContainerFunction · 0.85
getElementMethod · 0.45

Tested by

no test coverage detected