(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestLast(t *testing.T) { |
| 29 | sel := Doc().Find(".pvk-content").Last() |
| 30 | assertLength(t, sel.Nodes, 1) |
| 31 | |
| 32 | // Should contain Footer |
| 33 | foot := Doc().Find(".footer") |
| 34 | if !sel.Contains(foot.Nodes[0]) { |
| 35 | t.Error("Last .pvk-content should contain .footer.") |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func TestLastEmpty(t *testing.T) { |
| 40 | sel := Doc().Find(".pvk-zzcontentzz").Last() |
nothing calls this directly
no test coverage detected