(t *testing.T)
| 102 | } |
| 103 | |
| 104 | func TestSliceToEnd(t *testing.T) { |
| 105 | sel := Doc().Find(".pvk-content").Slice(1, ToEnd) |
| 106 | |
| 107 | assertLength(t, sel.Nodes, 2) |
| 108 | assertSelectionIs(t, sel.Eq(0), "#pc2") |
| 109 | if _, ok := sel.Eq(1).Attr("id"); ok { |
| 110 | t.Error("Want no attribute ID, got one") |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | func TestSliceEmpty(t *testing.T) { |
| 115 | defer assertPanic(t) |
nothing calls this directly
no test coverage detected