(t *testing.T)
| 191 | } |
| 192 | |
| 193 | func TestIndex(t *testing.T) { |
| 194 | sel := Doc().Find(".pvk-content") |
| 195 | if i := sel.Index(); i != 1 { |
| 196 | t.Errorf("Expected index of 1, got %v.", i) |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | func TestIndexSelector(t *testing.T) { |
| 201 | sel := Doc().Find(".hero-unit") |