()
| 1518 | |
| 1519 | def testReplaceWholeText(self): |
| 1520 | def setup(): |
| 1521 | doc = parseString("<doc>a<e/>d</doc>") |
| 1522 | elem = doc.documentElement |
| 1523 | text1 = elem.firstChild |
| 1524 | text2 = elem.lastChild |
| 1525 | splitter = text1.nextSibling |
| 1526 | elem.insertBefore(doc.createTextNode("b"), splitter) |
| 1527 | elem.insertBefore(doc.createCDATASection("c"), text1) |
| 1528 | return doc, elem, text1, splitter, text2 |
| 1529 | |
| 1530 | doc, elem, text1, splitter, text2 = setup() |
| 1531 | text = text1.replaceWholeText("new content") |
nothing calls this directly
no test coverage detected