(t *testing.T)
| 145 | } |
| 146 | |
| 147 | func TestNegativeSliceBoth(t *testing.T) { |
| 148 | sel := Doc().Find(".container-fluid").Slice(-3, -1) |
| 149 | assertLength(t, sel.Nodes, 2) |
| 150 | assertSelectionIs(t, sel.Eq(0), "#cf2") |
| 151 | assertSelectionIs(t, sel.Eq(1), "#cf3") |
| 152 | } |
| 153 | |
| 154 | func TestNegativeSliceToEnd(t *testing.T) { |
| 155 | sel := Doc().Find(".container-fluid").Slice(-3, ToEnd) |
nothing calls this directly
no test coverage detected