(t *testing.T)
| 138 | } |
| 139 | |
| 140 | func TestNegativeSliceEnd(t *testing.T) { |
| 141 | sel := Doc().Find(".container-fluid").Slice(1, -1) |
| 142 | assertLength(t, sel.Nodes, 2) |
| 143 | assertSelectionIs(t, sel.Eq(0), "#cf2") |
| 144 | assertSelectionIs(t, sel.Eq(1), "#cf3") |
| 145 | } |
| 146 | |
| 147 | func TestNegativeSliceBoth(t *testing.T) { |
| 148 | sel := Doc().Find(".container-fluid").Slice(-3, -1) |
nothing calls this directly
no test coverage detected