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