()
| 1502 | |
| 1503 | def testReplaceWholeText(self): |
| 1504 | def setup(): |
| 1505 | doc = parseString("<doc>a<e/>d</doc>") |
| 1506 | elem = doc.documentElement |
| 1507 | text1 = elem.firstChild |
| 1508 | text2 = elem.lastChild |
| 1509 | splitter = text1.nextSibling |
| 1510 | elem.insertBefore(doc.createTextNode("b"), splitter) |
| 1511 | elem.insertBefore(doc.createCDATASection("c"), text1) |
| 1512 | return doc, elem, text1, splitter, text2 |
| 1513 | |
| 1514 | doc, elem, text1, splitter, text2 = setup() |
| 1515 | text = text1.replaceWholeText("new content") |
nothing calls this directly
no test coverage detected