(t *testing.T)
| 209 | } |
| 210 | |
| 211 | func TestIndexSelector(t *testing.T) { |
| 212 | sel := Doc().Find(".hero-unit") |
| 213 | if i := sel.IndexSelector("div"); i != 4 { |
| 214 | t.Errorf("Expected index of 4, got %v.", i) |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | func TestIndexSelectorInvalid(t *testing.T) { |
| 219 | sel := Doc().Find(".hero-unit") |
nothing calls this directly
no test coverage detected