(t *testing.T)
| 237 | } |
| 238 | |
| 239 | func TestIndexOfSelection(t *testing.T) { |
| 240 | sel := Doc().Find("div") |
| 241 | sel2 := Doc().Find(".hero-unit") |
| 242 | if i := sel.IndexOfSelection(sel2); i != 4 { |
| 243 | t.Errorf("Expected index of 4, got %v.", i) |
| 244 | } |
| 245 | } |
nothing calls this directly
no test coverage detected