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

Function createTestDom

javascript/atoms/test/text_util.js:72–85  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

70 '\n------\n');
71
72 function createTestDom(element) {
73 return goog.dom.createDom('div', {'style': 'width: 25em;'},
74 goog.dom.createDom('div',
75 {'style': [
76 'margin: 0 0.5em;',
77 'padding: 0;',
78 'font-style: italic;',
79 'color: gray;'
80 ].join('')},
81 testName),
82 goog.dom.createDom('div', {
83 'style': 'margin-bottom: 0.5em'
84 }, element));
85 }
86
87 function escapeText(text) {
88 return text.replace(/\n/g, '\\n');//.replace(/\s/g, '\\s');

Callers 1

assertTextIsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected