(t *testing.T)
| 226 | } |
| 227 | |
| 228 | func TestIndexOfSelection(t *testing.T) { |
| 229 | sel := Doc().Find("div") |
| 230 | sel2 := Doc().Find(".hero-unit") |
| 231 | if i := sel.IndexOfSelection(sel2); i != 4 { |
| 232 | t.Errorf("Expected index of 4, got %v.", i) |
| 233 | } |
| 234 | } |
nothing calls this directly
no test coverage detected