MCPcopy Index your code
hub / github.com/bugy/script-server / getText

Function getText

web-src/tests/unit/terminal_view_test.js:78–84  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

76 }
77
78 function getText(element) {
79 if (element.nodeType === 3) {
80 return getTextNodeText(element);
81 } else {
82 return getComplexNodeText(element);
83 }
84 }
85
86 function assertTextNode(element, text) {
87 expect(element.nodeType).toBe(3)

Callers 2

assertTextsFunction · 0.70
assertLineFunction · 0.70

Calls 2

getTextNodeTextFunction · 0.85
getComplexNodeTextFunction · 0.85

Tested by

no test coverage detected