assertEquals("expected: 1 proposal found", 1, helper.popup.proposals.size());
}
public void testEditorContentsReplaced() {
Autocompleter autocompleter = helper.setup(path, "", 0, 0, false);
changeAutocompleterPath(autocompleter, new PathUtil("/test.html"));
assertEquals(SyntaxType.HTML, autocompleter.getMode());
changeAutocompleterPath(autocompleter, new PathUtil("/test.js"));
assertEquals(SyntaxType.JS, autocompleter.getMode());
changeAutocompleterPath(autocompleter, new PathUtil("/test.py"));
assertEquals(SyntaxType.PY, autocompleter.getMode());
changeAutocompleterPath(autocompleter, new PathUtil("/test.css"));
assertEquals(SyntaxType.CSS, autocompleter.getMode());
changeAutocompleterPath(autocompleter, new PathUtil("/test.foo"));
assertEquals(SyntaxType.NONE, autocompleter.getMode());
changeAutocompleterPath(autocompleter, new PathUtil(""));
assertEquals(SyntaxType.NONE, autocompleter.getMode());
}