(t *testing.T)
| 198 | } |
| 199 | |
| 200 | func TestIndexSelector(t *testing.T) { |
| 201 | sel := Doc().Find(".hero-unit") |
| 202 | if i := sel.IndexSelector("div"); i != 4 { |
| 203 | t.Errorf("Expected index of 4, got %v.", i) |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | func TestIndexSelectorInvalid(t *testing.T) { |
| 208 | sel := Doc().Find(".hero-unit") |
nothing calls this directly
no test coverage detected