(t *testing.T)
| 202 | } |
| 203 | |
| 204 | func TestIndex(t *testing.T) { |
| 205 | sel := Doc().Find(".pvk-content") |
| 206 | if i := sel.Index(); i != 1 { |
| 207 | t.Errorf("Expected index of 1, got %v.", i) |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | func TestIndexSelector(t *testing.T) { |
| 212 | sel := Doc().Find(".hero-unit") |