(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func TestNegativeSliceBoth(t *testing.T) { |
| 159 | sel := Doc().Find(".container-fluid").Slice(-3, -1) |
| 160 | assertLength(t, sel.Nodes, 2) |
| 161 | assertSelectionIs(t, sel.Eq(0), "#cf2") |
| 162 | assertSelectionIs(t, sel.Eq(1), "#cf3") |
| 163 | } |
| 164 | |
| 165 | func TestNegativeSliceToEnd(t *testing.T) { |
| 166 | sel := Doc().Find(".container-fluid").Slice(-3, ToEnd) |
nothing calls this directly
no test coverage detected