(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestIsPositional(t *testing.T) { |
| 22 | sel := Doc().Find(".footer p:nth-child(2)") |
| 23 | if !sel.Is("p:nth-child(2)") { |
| 24 | t.Error("Expected .footer p:nth-child(2) to be p:nth-child(2).") |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func TestIsPositionalNot(t *testing.T) { |
| 29 | sel := Doc().Find(".footer p:nth-child(1)") |