(t *testing.T)
| 113 | } |
| 114 | |
| 115 | func TestSliceToEnd(t *testing.T) { |
| 116 | sel := Doc().Find(".pvk-content").Slice(1, ToEnd) |
| 117 | |
| 118 | assertLength(t, sel.Nodes, 2) |
| 119 | assertSelectionIs(t, sel.Eq(0), "#pc2") |
| 120 | if _, ok := sel.Eq(1).Attr("id"); ok { |
| 121 | t.Error("Want no attribute ID, got one") |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | func TestSliceEmpty(t *testing.T) { |
| 126 | defer assertPanic(t) |
nothing calls this directly
no test coverage detected