(t *testing.T)
| 58 | } |
| 59 | |
| 60 | func TestEqNegative(t *testing.T) { |
| 61 | sel := Doc().Find(".pvk-content").Eq(-1) |
| 62 | assertLength(t, sel.Nodes, 1) |
| 63 | |
| 64 | // Should contain Footer |
| 65 | foot := Doc().Find(".footer") |
| 66 | if !sel.Contains(foot.Nodes[0]) { |
| 67 | t.Error("Index -1 of .pvk-content should contain .footer.") |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func TestEqEmpty(t *testing.T) { |
| 72 | sel := Doc().Find("something_random_that_does_not_exists").Eq(0) |
nothing calls this directly
no test coverage detected