(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestAfterSelection(t *testing.T) { |
| 43 | doc := Doc2Clone() |
| 44 | doc.Find("#main").AfterSelection(doc.Find("#nf1, #nf2")) |
| 45 | |
| 46 | assertLength(t, doc.Find("#main #nf1, #main #nf2").Nodes, 0) |
| 47 | assertLength(t, doc.Find("#foot #nf1, #foot #nf2").Nodes, 0) |
| 48 | assertLength(t, doc.Find("#main + #nf1, #nf1 + #nf2").Nodes, 2) |
| 49 | printSel(t, doc.Selection) |
| 50 | } |
| 51 | |
| 52 | func TestAfterHtml(t *testing.T) { |
| 53 | doc := Doc2Clone() |
nothing calls this directly
no test coverage detected
searching dependent graphs…