(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestIsPositionalNot(t *testing.T) { |
| 29 | sel := Doc().Find(".footer p:nth-child(1)") |
| 30 | if sel.Is("p:nth-child(2)") { |
| 31 | t.Error("Expected .footer p:nth-child(1) NOT to be p:nth-child(2).") |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestIsFunction(t *testing.T) { |
| 36 | ok := Doc().Find("div").IsFunction(func(i int, s *Selection) bool { |