testNoAutoHiliteWhenTokenIsEmpty() {
    const ds = new MockDS();
    const rend = new TestRend();
    /** @suppress {checkTypes} suppression added to enable type checking */
    const select = new MockSelect();
    const ac = new AutoComplete(ds, rend, select);
    ac.setWrap(true);
    ac.setAllowFreeSelect(true);
    ac.setAutoHilite(true);
    ac.setMaxMatches(4);

    ac.setToken('');
    assertEquals(4, rend.getRenderedRows().length);
    // No token; nothing should be hilited.
    checkHilitedIndex(rend, -1);

    ac.setToken('the');
    assertEquals(4, rend.getRenderedRows().length);
    // Now there is a token, so the first row should be highlighted.
    checkHilitedIndex(rend, 0);
  }
Checks that autohilite is disabled when there is no token; this allows
the user to tab out of an empty autocomplete.